From 3a7e94c2f38c3c7275d712d32f216aba22b12cd7 Mon Sep 17 00:00:00 2001 From: Noah Meyerhans Date: Sun, 30 Mar 2025 11:48:57 -0400 Subject: [PATCH] Import dovecot_2.4.1+dfsg1.orig.tar.gz [dgit import orig dovecot_2.4.1+dfsg1.orig.tar.gz] --- AUTHORS | 26 + COPYING | 76 + COPYING.LGPL | 502 + COPYING.MIT | 17 + ChangeLog | 3 + INSTALL.md | 39 + Makefile.am | 114 + Makefile.in | 1233 + NEWS | 5930 +++ README.md | 23 + SECURITY.md | 10 + TODO | 369 + aclocal.m4 | 3496 ++ build-aux/compile | 348 + build-aux/config.guess | 1480 + build-aux/config.rpath | 684 + build-aux/config.sub | 1801 + build-aux/depcomp | 791 + build-aux/git-abi-version-gen | 39 + build-aux/git-version-gen | 18 + build-aux/install-sh | 541 + build-aux/ltmain.sh | 11251 +++++ build-aux/missing | 215 + build-aux/run-test.sh.in | 54 + build-aux/ylwrap | 247 + config.h.in | 813 + configure | 32243 +++++++++++++ configure.ac | 946 + doc/Makefile.am | 50 + doc/Makefile.in | 886 + doc/dovecot-initd.sh | 79 + doc/dovecot-openssl.cnf | 31 + doc/dovecot.conf.in | 50 + doc/index.html | 16 + doc/index.html.in | 16 + doc/man/Makefile.am | 17 + doc/man/Makefile.in | 734 + doc/man/deliver.1 | 1 + doc/man/doveadm-acl.1 | 362 + doc/man/doveadm-altmove.1 | 210 + doc/man/doveadm-auth.1 | 724 + doc/man/doveadm-backup.1 | 520 + doc/man/doveadm-compress-connect.1 | 23 + doc/man/doveadm-config.1 | 1 + doc/man/doveadm-copy.1 | 212 + doc/man/doveadm-deduplicate.1 | 207 + doc/man/doveadm-dict.1 | 381 + doc/man/doveadm-dump.1 | 226 + doc/man/doveadm-exec.1 | 121 + doc/man/doveadm-expunge.1 | 191 + doc/man/doveadm-fetch.1 | 412 + doc/man/doveadm-flags.1 | 215 + doc/man/doveadm-force-resync.1 | 173 + doc/man/doveadm-fs.1 | 278 + doc/man/doveadm-fts.1 | 285 + doc/man/doveadm-help.1 | 99 + doc/man/doveadm-import.1 | 241 + doc/man/doveadm-index.1 | 203 + doc/man/doveadm-indexer.1 | 164 + doc/man/doveadm-instance.1 | 164 + doc/man/doveadm-kick.1 | 214 + doc/man/doveadm-log.1 | 149 + doc/man/doveadm-mail-dict.1 | 381 + doc/man/doveadm-mail-fs.1 | 278 + doc/man/doveadm-mailbox-cryptokey.1 | 314 + doc/man/doveadm-mailbox.1 | 756 + doc/man/doveadm-move.1 | 212 + doc/man/doveadm-penalty.1 | 129 + doc/man/doveadm-process-status.1 | 226 + doc/man/doveadm-proxy.1 | 15 + doc/man/doveadm-purge.1 | 167 + doc/man/doveadm-pw.1 | 205 + doc/man/doveadm-quota.1 | 263 + doc/man/doveadm-rebuild.1 | 231 + doc/man/doveadm-reload.1 | 1 + doc/man/doveadm-save.1 | 218 + doc/man/doveadm-search-query.7 | 618 + doc/man/doveadm-search.1 | 244 + doc/man/doveadm-service-status.1 | 296 + doc/man/doveadm-service-stop.1 | 146 + doc/man/doveadm-stats.1 | 275 + doc/man/doveadm-stop.1 | 1 + doc/man/doveadm-sync.1 | 520 + doc/man/doveadm-user.1 | 277 + doc/man/doveadm-who.1 | 225 + doc/man/doveadm.1 | 405 + doc/man/doveconf.1 | 293 + doc/man/dovecot-lda.1 | 263 + doc/man/dovecot-sysreport.1 | 63 + doc/man/dovecot.1 | 213 + doc/mkcert.sh | 40 + doc/solr-config-7.7.0.xml | 292 + doc/solr-config-9.xml | 783 + doc/solr-schema-7.7.0.xml | 75 + doc/solr-schema-9.xml | 38 + doc/stamp-man | 0 doc/thread-refs.txt | 223 + dovecot-config.in.in | 67 + dovecot-version.h | 8 + dovecot.service.in | 36 + dovecot.socket | 15 + m4/ac_typeof.m4 | 121 + m4/arc4random.m4 | 15 + m4/blockdev.m4 | 41 + m4/crypt.m4 | 11 + m4/crypt_xpg6.m4 | 24 + m4/dbqlk.m4 | 39 + m4/dirent_dtype.m4 | 11 + m4/dovecot.m4 | 578 + m4/dovecot_pro.m4 | 8 + m4/faccessat2.m4 | 10 + m4/fd_passing.m4 | 86 + m4/glibc.m4 | 33 + m4/gmtime_max.m4 | 41 + m4/gmtime_tm_gmtoff.m4 | 14 + m4/ioloop.m4 | 54 + m4/iovec.m4 | 15 + m4/libcap.m4 | 13 + m4/libtool.m4 | 8394 ++++ m4/linux_mremap.m4 | 19 + m4/ltoptions.m4 | 437 + m4/ltsugar.m4 | 124 + m4/ltversion.m4 | 23 + m4/lt~obsolete.m4 | 99 + m4/mmap_write.m4 | 43 + m4/mntctl.m4 | 29 + m4/modules.m4 | 24 + m4/notify.m4 | 41 + m4/nsl.m4 | 6 + m4/off_t_max.m4 | 13 + m4/pkg.m4 | 343 + m4/pr_set_dumpable.m4 | 16 + m4/q_quotactl.m4 | 20 + m4/quota.m4 | 31 + m4/random.m4 | 6 + m4/rlimit.m4 | 65 + m4/sched.m4 | 4 + m4/sendfile.m4 | 46 + m4/size_t_signed.m4 | 26 + m4/sockpeercred.m4 | 6 + m4/sql.m4 | 23 + m4/ssl.m4 | 116 + m4/st_tim.m4 | 41 + m4/test_with.m4 | 18 + m4/time_t.m4 | 42 + m4/typeof.m4 | 16 + m4/uoff_t_max.m4 | 13 + m4/vararg.m4 | 50 + m4/want_apparmor.m4 | 24 + m4/want_bsdauth.m4 | 19 + m4/want_bzlib.m4 | 20 + m4/want_cassandra.m4 | 24 + m4/want_cdb.m4 | 19 + m4/want_flatcurve.m4 | 16 + m4/want_gssapi.m4 | 107 + m4/want_icu.m4 | 19 + m4/want_ldap.m4 | 61 + m4/want_lua.m4 | 71 + m4/want_lz4.m4 | 25 + m4/want_mysql.m4 | 113 + m4/want_pam.m4 | 34 + m4/want_passwd.m4 | 21 + m4/want_pgsql.m4 | 60 + m4/want_prefetch.m4 | 8 + m4/want_sodium.m4 | 18 + m4/want_solr.m4 | 21 + m4/want_sqlite.m4 | 18 + m4/want_stemmer.m4 | 14 + m4/want_systemd.m4 | 36 + m4/want_textcat.m4 | 37 + m4/want_unwind.m4 | 17 + m4/want_zstd.m4 | 28 + m4/zlib.m4 | 8 + run-test-valgrind.supp | 152 + src/Makefile.am | 79 + src/Makefile.in | 859 + src/anvil/Makefile.am | 58 + src/anvil/Makefile.in | 905 + src/anvil/admin-client-pool.c | 130 + src/anvil/admin-client-pool.h | 15 + src/anvil/admin-client.c | 176 + src/anvil/admin-client.h | 24 + src/anvil/anvil-connection.c | 804 + src/anvil/anvil-connection.h | 28 + src/anvil/anvil-settings.c | 47 + src/anvil/common.h | 26 + src/anvil/connect-limit.c | 732 + src/anvil/connect-limit.h | 78 + src/anvil/main.c | 179 + src/anvil/penalty.c | 272 + src/anvil/penalty.h | 22 + src/anvil/test-connect-limit.c | 435 + src/anvil/test-penalty.c | 64 + src/auth/Makefile.am | 264 + src/auth/Makefile.in | 2736 ++ src/auth/auth-cache.c | 483 + src/auth/auth-cache.h | 58 + src/auth/auth-client-connection.c | 397 + src/auth/auth-client-connection.h | 38 + src/auth/auth-common.h | 18 + src/auth/auth-fields.c | 224 + src/auth/auth-fields.h | 47 + src/auth/auth-master-connection.c | 857 + src/auth/auth-master-connection.h | 34 + src/auth/auth-penalty.c | 178 + src/auth/auth-penalty.h | 28 + src/auth/auth-policy.c | 651 + src/auth/auth-policy.h | 12 + src/auth/auth-request-fields.c | 566 + src/auth/auth-request-handler-private.h | 27 + src/auth/auth-request-handler.c | 1055 + src/auth/auth-request-handler.h | 69 + src/auth/auth-request-var-expand.c | 288 + src/auth/auth-request-var-expand.h | 41 + src/auth/auth-request.c | 2752 ++ src/auth/auth-request.h | 448 + src/auth/auth-settings.c | 693 + src/auth/auth-settings.h | 136 + src/auth/auth-token.c | 178 + src/auth/auth-token.h | 11 + src/auth/auth-worker-connection.c | 545 + src/auth/auth-worker-connection.h | 18 + src/auth/auth-worker-server.c | 1086 + src/auth/auth-worker-server.h | 29 + src/auth/auth.c | 578 + src/auth/auth.h | 103 + src/auth/db-ldap-settings.c | 237 + src/auth/db-ldap-settings.h | 79 + src/auth/db-ldap.c | 1580 + src/auth/db-ldap.h | 199 + src/auth/db-lua.c | 827 + src/auth/db-lua.h | 66 + src/auth/db-oauth2.c | 840 + src/auth/db-oauth2.h | 100 + src/auth/db-passwd-file.c | 541 + src/auth/db-passwd-file.h | 67 + src/auth/db-sql.c | 30 + src/auth/db-sql.h | 9 + src/auth/main.c | 395 + src/auth/mech-anonymous.c | 44 + src/auth/mech-apop.c | 173 + src/auth/mech-cram-md5.c | 192 + src/auth/mech-digest-md5-private.h | 38 + src/auth/mech-digest-md5.c | 600 + src/auth/mech-dovecot-token.c | 92 + src/auth/mech-external.c | 64 + src/auth/mech-gssapi.c | 760 + src/auth/mech-login.c | 76 + src/auth/mech-oauth2.c | 432 + src/auth/mech-otp-common.c | 71 + src/auth/mech-otp-common.h | 23 + src/auth/mech-otp.c | 240 + src/auth/mech-plain-common.c | 22 + src/auth/mech-plain-common.h | 7 + src/auth/mech-plain.c | 88 + src/auth/mech-scram.c | 278 + src/auth/mech-scram.h | 10 + src/auth/mech-winbind.c | 362 + src/auth/mech.c | 261 + src/auth/mech.h | 80 + src/auth/passdb-blocking.c | 171 + src/auth/passdb-blocking.h | 12 + src/auth/passdb-bsdauth.c | 130 + src/auth/passdb-cache.c | 211 + src/auth/passdb-cache.h | 21 + src/auth/passdb-imap.c | 132 + src/auth/passdb-ldap.c | 512 + src/auth/passdb-lua.c | 168 + src/auth/passdb-oauth2.c | 66 + src/auth/passdb-pam.c | 442 + src/auth/passdb-passwd-file.c | 194 + src/auth/passdb-passwd.c | 172 + src/auth/passdb-sql.c | 357 + src/auth/passdb-static.c | 86 + src/auth/passdb.c | 287 + src/auth/passdb.h | 115 + src/auth/test-auth-cache.c | 114 + src/auth/test-auth-client.c | 99 + src/auth/test-auth-master-server.c | 24 + src/auth/test-auth-master.c | 84 + src/auth/test-auth-master.h | 7 + src/auth/test-auth-request-fields.c | 178 + src/auth/test-auth-request-var-expand.c | 264 + src/auth/test-auth.c | 90 + src/auth/test-auth.h | 26 + src/auth/test-lua.c | 194 + src/auth/test-main.c | 53 + src/auth/test-mech.c | 375 + src/auth/test-mock.c | 88 + src/auth/test-username-filter.c | 50 + src/auth/userdb-blocking.c | 145 + src/auth/userdb-blocking.h | 12 + src/auth/userdb-ldap.c | 398 + src/auth/userdb-lua.c | 109 + src/auth/userdb-passwd-file.c | 286 + src/auth/userdb-passwd.c | 248 + src/auth/userdb-prefetch.c | 49 + src/auth/userdb-sql.c | 372 + src/auth/userdb-static.c | 132 + src/auth/userdb.c | 204 + src/auth/userdb.h | 89 + src/config/Makefile.am | 113 + src/config/Makefile.in | 1116 + src/config/all-settings.c | 10844 +++++ src/config/all-settings.h | 8 + src/config/config-connection.c | 188 + src/config/config-connection.h | 10 + src/config/config-dump-full.c | 883 + src/config/config-dump-full.h | 17 + src/config/config-filter.c | 214 + src/config/config-filter.h | 99 + src/config/config-parser-private.h | 125 + src/config/config-parser.c | 3387 ++ src/config/config-parser.h | 126 + src/config/config-request.c | 481 + src/config/config-request.h | 75 + src/config/config-settings.c | 35 + src/config/default-settings-import.h | 57 + src/config/doveconf.c | 1322 + src/config/main.c | 49 + src/config/old-set-parser.c | 110 + src/config/old-set-parser.h | 16 + src/config/settings-get.pl | 174 + src/config/sysinfo-get.c | 121 + src/config/sysinfo-get.h | 6 + src/config/test-config-parser.c | 191 + src/dict/Makefile.am | 56 + src/dict/Makefile.in | 880 + src/dict/dict-commands.c | 781 + src/dict/dict-commands.h | 21 + src/dict/dict-connection.c | 277 + src/dict/dict-connection.h | 48 + src/dict/dict-expire.c | 169 + src/dict/dict-init-cache.c | 163 + src/dict/dict-init-cache.h | 11 + src/dict/dict-settings.c | 127 + src/dict/dict-settings.h | 16 + src/dict/main.c | 175 + src/dict/main.h | 6 + src/dns/Makefile.am | 18 + src/dns/Makefile.in | 814 + src/dns/dns-client-settings.c | 38 + src/dns/dns-client.c | 161 + src/doveadm/Makefile.am | 202 + src/doveadm/Makefile.in | 1525 + src/doveadm/client-connection-http.c | 1204 + src/doveadm/client-connection-private.h | 18 + src/doveadm/client-connection-tcp.c | 627 + src/doveadm/client-connection.c | 109 + src/doveadm/client-connection.h | 31 + src/doveadm/doveadm-auth-server.c | 473 + src/doveadm/doveadm-auth.c | 965 + src/doveadm/doveadm-cmd-parse.c | 524 + src/doveadm/doveadm-cmd-parse.h | 180 + src/doveadm/doveadm-cmd.c | 163 + src/doveadm/doveadm-cmd.h | 60 + src/doveadm/doveadm-compress.c | 352 + src/doveadm/doveadm-dict.c | 390 + src/doveadm/doveadm-dict.h | 13 + src/doveadm/doveadm-dsync.c | 1354 + src/doveadm/doveadm-dsync.h | 8 + src/doveadm/doveadm-dump-dbox.c | 233 + src/doveadm/doveadm-dump-dcrypt-file.c | 156 + src/doveadm/doveadm-dump-dcrypt-key.c | 328 + src/doveadm/doveadm-dump-index.c | 861 + src/doveadm/doveadm-dump-log.c | 570 + src/doveadm/doveadm-dump-mailboxlog.c | 116 + src/doveadm/doveadm-dump-thread.c | 141 + src/doveadm/doveadm-dump.c | 163 + src/doveadm/doveadm-dump.h | 28 + src/doveadm/doveadm-fs.c | 653 + src/doveadm/doveadm-fs.h | 21 + src/doveadm/doveadm-indexer.c | 200 + src/doveadm/doveadm-instance.c | 156 + src/doveadm/doveadm-kick.c | 182 + src/doveadm/doveadm-log.c | 481 + src/doveadm/doveadm-mail-altmove.c | 151 + src/doveadm/doveadm-mail-copymove.c | 221 + src/doveadm/doveadm-mail-deduplicate.c | 137 + src/doveadm/doveadm-mail-dict.c | 244 + src/doveadm/doveadm-mail-expunge.c | 280 + src/doveadm/doveadm-mail-fetch.c | 751 + src/doveadm/doveadm-mail-flags.c | 188 + src/doveadm/doveadm-mail-fs.c | 379 + src/doveadm/doveadm-mail-import.c | 307 + src/doveadm/doveadm-mail-index.c | 329 + src/doveadm/doveadm-mail-iter.c | 178 + src/doveadm/doveadm-mail-iter.h | 35 + src/doveadm/doveadm-mail-mailbox-cache.c | 427 + src/doveadm/doveadm-mail-mailbox-metadata.c | 431 + src/doveadm/doveadm-mail-mailbox-status.c | 270 + src/doveadm/doveadm-mail-mailbox.c | 761 + src/doveadm/doveadm-mail-rebuild.c | 107 + src/doveadm/doveadm-mail-save.c | 155 + src/doveadm/doveadm-mail-search.c | 106 + src/doveadm/doveadm-mail-server.c | 887 + src/doveadm/doveadm-mail.c | 1041 + src/doveadm/doveadm-mail.h | 238 + src/doveadm/doveadm-mailbox-list-iter.c | 197 + src/doveadm/doveadm-mailbox-list-iter.h | 25 + src/doveadm/doveadm-master.c | 309 + src/doveadm/doveadm-mutf7.c | 58 + src/doveadm/doveadm-penalty.c | 132 + src/doveadm/doveadm-print-flow.c | 111 + src/doveadm/doveadm-print-formatted.c | 93 + src/doveadm/doveadm-print-json.c | 141 + src/doveadm/doveadm-print-pager.c | 113 + src/doveadm/doveadm-print-private.h | 32 + src/doveadm/doveadm-print-server.c | 119 + src/doveadm/doveadm-print-tab.c | 76 + src/doveadm/doveadm-print-table.c | 268 + src/doveadm/doveadm-print.c | 221 + src/doveadm/doveadm-print.h | 56 + src/doveadm/doveadm-pw.c | 133 + src/doveadm/doveadm-settings.c | 225 + src/doveadm/doveadm-settings.h | 54 + src/doveadm/doveadm-sis.c | 87 + src/doveadm/doveadm-stats.c | 371 + src/doveadm/doveadm-util.c | 213 + src/doveadm/doveadm-util.h | 31 + src/doveadm/doveadm-who.c | 522 + src/doveadm/doveadm-who.h | 56 + src/doveadm/doveadm.c | 420 + src/doveadm/doveadm.h | 27 + src/doveadm/dsync/Makefile.am | 77 + src/doveadm/dsync/Makefile.in | 1031 + .../dsync/dsync-brain-mailbox-tree-sync.c | 227 + src/doveadm/dsync/dsync-brain-mailbox-tree.c | 607 + src/doveadm/dsync/dsync-brain-mailbox.c | 909 + src/doveadm/dsync/dsync-brain-mails.c | 433 + src/doveadm/dsync/dsync-brain-private.h | 165 + src/doveadm/dsync/dsync-brain.c | 898 + src/doveadm/dsync/dsync-brain.h | 137 + src/doveadm/dsync/dsync-deserializer.c | 193 + src/doveadm/dsync/dsync-deserializer.h | 27 + src/doveadm/dsync/dsync-ibc-pipe.c | 599 + src/doveadm/dsync/dsync-ibc-private.h | 96 + src/doveadm/dsync/dsync-ibc-stream.c | 2130 + src/doveadm/dsync/dsync-ibc.c | 239 + src/doveadm/dsync/dsync-ibc.h | 177 + src/doveadm/dsync/dsync-mail.c | 156 + src/doveadm/dsync/dsync-mail.h | 110 + src/doveadm/dsync/dsync-mailbox-export.c | 986 + src/doveadm/dsync/dsync-mailbox-export.h | 38 + src/doveadm/dsync/dsync-mailbox-import.c | 3013 ++ src/doveadm/dsync/dsync-mailbox-import.h | 64 + src/doveadm/dsync/dsync-mailbox-state.c | 127 + src/doveadm/dsync/dsync-mailbox-state.h | 24 + src/doveadm/dsync/dsync-mailbox-tree-fill.c | 468 + .../dsync/dsync-mailbox-tree-private.h | 38 + src/doveadm/dsync/dsync-mailbox-tree-sync.c | 1466 + src/doveadm/dsync/dsync-mailbox-tree.c | 571 + src/doveadm/dsync/dsync-mailbox-tree.h | 209 + src/doveadm/dsync/dsync-mailbox.c | 64 + src/doveadm/dsync/dsync-mailbox.h | 44 + src/doveadm/dsync/dsync-serializer.c | 117 + src/doveadm/dsync/dsync-serializer.h | 18 + .../dsync/dsync-transaction-log-scan.c | 615 + .../dsync/dsync-transaction-log-scan.h | 31 + .../dsync/test-dsync-mailbox-tree-sync.c | 825 + src/doveadm/main.c | 148 + src/doveadm/test-doveadm-cmd-parse.c | 286 + src/doveadm/test-doveadm-util.c | 56 + src/imap-hibernate/Makefile.am | 28 + src/imap-hibernate/Makefile.in | 839 + src/imap-hibernate/imap-client.c | 879 + src/imap-hibernate/imap-client.h | 47 + src/imap-hibernate/imap-hibernate-client.c | 372 + src/imap-hibernate/imap-hibernate-client.h | 9 + src/imap-hibernate/imap-hibernate-settings.c | 40 + src/imap-hibernate/imap-master-connection.c | 140 + src/imap-hibernate/imap-master-connection.h | 24 + src/imap-hibernate/main.c | 63 + src/imap-login/Makefile.am | 48 + src/imap-login/Makefile.in | 914 + src/imap-login/client-authenticate.c | 218 + src/imap-login/client-authenticate.h | 16 + src/imap-login/imap-login-client.c | 629 + src/imap-login/imap-login-client.h | 99 + src/imap-login/imap-login-cmd-id.c | 397 + src/imap-login/imap-login-commands.c | 70 + src/imap-login/imap-login-commands.h | 25 + src/imap-login/imap-login-settings.c | 101 + src/imap-login/imap-login-settings.h | 14 + src/imap-login/imap-proxy.c | 672 + src/imap-login/imap-proxy.h | 15 + src/imap-urlauth-login/Makefile.am | 31 + src/imap-urlauth-login/Makefile.in | 856 + .../imap-urlauth-login-settings.c | 46 + src/imap-urlauth-login/imap-urlauth-login.c | 212 + src/imap-urlauth/Makefile.am | 69 + src/imap-urlauth/Makefile.in | 982 + src/imap-urlauth/imap-urlauth-client.c | 204 + src/imap-urlauth/imap-urlauth-client.h | 44 + src/imap-urlauth/imap-urlauth-common.h | 18 + src/imap-urlauth/imap-urlauth-settings.c | 80 + src/imap-urlauth/imap-urlauth-settings.h | 25 + src/imap-urlauth/imap-urlauth-worker-client.c | 311 + src/imap-urlauth/imap-urlauth-worker-client.h | 16 + src/imap-urlauth/imap-urlauth-worker-common.h | 9 + .../imap-urlauth-worker-settings.c | 75 + .../imap-urlauth-worker-settings.h | 19 + src/imap-urlauth/imap-urlauth-worker.c | 1061 + src/imap-urlauth/imap-urlauth.c | 295 + src/imap/Makefile.am | 145 + src/imap/Makefile.in | 1248 + src/imap/cmd-append.c | 1083 + src/imap/cmd-cancelupdate.c | 45 + src/imap/cmd-capability.c | 14 + src/imap/cmd-check.c | 13 + src/imap/cmd-close.c | 36 + src/imap/cmd-compress.c | 162 + src/imap/cmd-copy.c | 431 + src/imap/cmd-create.c | 48 + src/imap/cmd-delete.c | 59 + src/imap/cmd-enable.c | 35 + src/imap/cmd-examine.c | 9 + src/imap/cmd-expunge.c | 68 + src/imap/cmd-fetch.c | 391 + src/imap/cmd-genurlauth.c | 54 + src/imap/cmd-getmetadata.c | 572 + src/imap/cmd-id.c | 71 + src/imap/cmd-idle.c | 310 + src/imap/cmd-list.c | 552 + src/imap/cmd-logout.c | 24 + src/imap/cmd-lsub.c | 9 + src/imap/cmd-namespace.c | 99 + src/imap/cmd-noop.c | 15 + src/imap/cmd-notify.c | 605 + src/imap/cmd-rename.c | 49 + src/imap/cmd-resetkey.c | 97 + src/imap/cmd-search.c | 55 + src/imap/cmd-select.c | 426 + src/imap/cmd-setmetadata.c | 378 + src/imap/cmd-sort.c | 142 + src/imap/cmd-status.c | 54 + src/imap/cmd-store.c | 261 + src/imap/cmd-subscribe.c | 87 + src/imap/cmd-thread.c | 294 + src/imap/cmd-unselect.c | 18 + src/imap/cmd-unsubscribe.c | 9 + src/imap/cmd-urlfetch.c | 400 + src/imap/imap-client-hibernate.c | 327 + src/imap/imap-client.c | 1752 + src/imap/imap-client.h | 374 + src/imap/imap-commands-util.c | 400 + src/imap/imap-commands-util.h | 80 + src/imap/imap-commands.c | 254 + src/imap/imap-commands.h | 134 + src/imap/imap-common.h | 42 + src/imap/imap-expunge.c | 119 + src/imap/imap-expunge.h | 10 + src/imap/imap-feature.c | 46 + src/imap/imap-feature.h | 25 + src/imap/imap-fetch-body.c | 717 + src/imap/imap-fetch.c | 1040 + src/imap/imap-fetch.h | 166 + src/imap/imap-list.c | 104 + src/imap/imap-list.h | 42 + src/imap/imap-master-client.c | 522 + src/imap/imap-master-client.h | 10 + src/imap/imap-notify.c | 524 + src/imap/imap-notify.h | 77 + src/imap/imap-search-args.c | 270 + src/imap/imap-search-args.h | 34 + src/imap/imap-search.c | 612 + src/imap/imap-search.h | 61 + src/imap/imap-settings.c | 263 + src/imap/imap-settings.h | 51 + src/imap/imap-state.c | 920 + src/imap/imap-state.h | 28 + src/imap/imap-status.c | 171 + src/imap/imap-status.h | 51 + src/imap/imap-storage-callbacks.c | 146 + src/imap/imap-storage-callbacks.h | 13 + src/imap/imap-sync-private.h | 47 + src/imap/imap-sync.c | 842 + src/imap/imap-sync.h | 25 + src/imap/main.c | 618 + src/imap/test-imap-client-hibernate.c | 292 + src/imap/test-imap-storage-callbacks.c | 64 + src/indexer/Makefile.am | 65 + src/indexer/Makefile.in | 918 + src/indexer/indexer-client.c | 347 + src/indexer/indexer-client.h | 15 + src/indexer/indexer-queue.c | 402 + src/indexer/indexer-queue.h | 94 + src/indexer/indexer-settings.c | 37 + src/indexer/indexer-worker-settings.c | 42 + src/indexer/indexer-worker.c | 73 + src/indexer/indexer.c | 135 + src/indexer/indexer.h | 14 + src/indexer/master-connection.c | 444 + src/indexer/master-connection.h | 8 + src/indexer/test-indexer-queue.c | 272 + src/indexer/worker-connection.c | 238 + src/indexer/worker-connection.h | 26 + src/lda/Makefile.am | 39 + src/lda/Makefile.in | 833 + src/lda/main.c | 561 + src/lib-auth-client/Makefile.am | 61 + src/lib-auth-client/Makefile.in | 918 + src/lib-auth-client/auth-client-connection.c | 587 + src/lib-auth-client/auth-client-interface.h | 45 + src/lib-auth-client/auth-client-private.h | 102 + src/lib-auth-client/auth-client-request.c | 605 + src/lib-auth-client/auth-client.c | 117 + src/lib-auth-client/auth-client.h | 137 + src/lib-auth-client/auth-master.c | 1033 + src/lib-auth-client/auth-master.h | 78 + src/lib-auth-client/auth-proxy.c | 97 + src/lib-auth-client/auth-proxy.h | 66 + src/lib-auth-client/test-auth-client.c | 1278 + src/lib-auth-client/test-auth-master.c | 1442 + src/lib-auth/Makefile.am | 83 + src/lib-auth/Makefile.in | 989 + src/lib-auth/auth-scram-client.c | 497 + src/lib-auth/auth-scram-client.h | 66 + src/lib-auth/auth-scram-server.c | 734 + src/lib-auth/auth-scram-server.h | 116 + src/lib-auth/auth-scram.c | 115 + src/lib-auth/auth-scram.h | 40 + src/lib-auth/crypt-blowfish.c | 900 + src/lib-auth/crypt-blowfish.h | 29 + src/lib-auth/mycrypt.c | 26 + src/lib-auth/mycrypt.h | 8 + src/lib-auth/password-scheme-crypt.c | 265 + src/lib-auth/password-scheme-md5crypt.c | 147 + src/lib-auth/password-scheme-otp.c | 40 + src/lib-auth/password-scheme-pbkdf2.c | 82 + src/lib-auth/password-scheme-private.h | 6 + src/lib-auth/password-scheme-scram.c | 175 + src/lib-auth/password-scheme-sodium.c | 109 + src/lib-auth/password-scheme.c | 950 + src/lib-auth/password-scheme.h | 149 + src/lib-auth/test-auth-scram.c | 562 + src/lib-auth/test-password-scheme.c | 140 + src/lib-charset/Makefile.am | 37 + src/lib-charset/Makefile.in | 872 + src/lib-charset/charset-iconv.c | 147 + src/lib-charset/charset-utf8-only.c | 51 + src/lib-charset/charset-utf8-private.h | 21 + src/lib-charset/charset-utf8.c | 99 + src/lib-charset/charset-utf8.h | 53 + src/lib-charset/test-charset.c | 231 + src/lib-compression/Makefile.am | 62 + src/lib-compression/Makefile.in | 983 + src/lib-compression/bench-compression.c | 185 + src/lib-compression/compression.c | 179 + src/lib-compression/compression.h | 43 + src/lib-compression/iostream-lz4.h | 30 + src/lib-compression/iostream-zstd-private.h | 35 + src/lib-compression/istream-bzlib.c | 231 + src/lib-compression/istream-decompress.c | 258 + src/lib-compression/istream-lz4.c | 281 + src/lib-compression/istream-zlib.c | 427 + src/lib-compression/istream-zlib.h | 10 + src/lib-compression/istream-zstd.c | 268 + src/lib-compression/ostream-bzlib.c | 322 + src/lib-compression/ostream-lz4.c | 233 + src/lib-compression/ostream-zlib.c | 443 + src/lib-compression/ostream-zlib.h | 10 + src/lib-compression/ostream-zstd.c | 284 + src/lib-compression/test-compression.c | 1142 + src/lib-dcrypt/Makefile.am | 85 + src/lib-dcrypt/Makefile.in | 1206 + src/lib-dcrypt/dcrypt-iostream.h | 17 + src/lib-dcrypt/dcrypt-openssl1.c | 4376 ++ src/lib-dcrypt/dcrypt-openssl3.c | 4168 ++ src/lib-dcrypt/dcrypt-private.h | 213 + src/lib-dcrypt/dcrypt.c | 640 + src/lib-dcrypt/dcrypt.h | 409 + src/lib-dcrypt/istream-decrypt.c | 1172 + src/lib-dcrypt/istream-decrypt.h | 48 + src/lib-dcrypt/ostream-encrypt.c | 829 + src/lib-dcrypt/ostream-encrypt.h | 30 + src/lib-dcrypt/sample-v1.asc | 48 + src/lib-dcrypt/sample-v1_short.asc | 4 + src/lib-dcrypt/sample-v2.asc | 287 + src/lib-dcrypt/test-crypto.c | 2035 + src/lib-dcrypt/test-stream.c | 744 + src/lib-dict-backend/Makefile.am | 118 + src/lib-dict-backend/Makefile.in | 1038 + src/lib-dict-backend/dict-cdb.c | 303 + src/lib-dict-backend/dict-ldap-settings.c | 331 + src/lib-dict-backend/dict-ldap-settings.h | 57 + src/lib-dict-backend/dict-ldap.c | 526 + src/lib-dict-backend/dict-sql-private.h | 12 + src/lib-dict-backend/dict-sql-settings.c | 328 + src/lib-dict-backend/dict-sql-settings.h | 79 + src/lib-dict-backend/dict-sql.c | 1670 + src/lib-dict-backend/dict-sql.h | 7 + src/lib-dict-backend/test-dict-sql.c | 357 + src/lib-dict-extra/Makefile.am | 46 + src/lib-dict-extra/Makefile.in | 825 + src/lib-dict-extra/dict-client.c | 1479 + src/lib-dict-extra/dict-client.h | 43 + src/lib-dict-extra/dict-fs.c | 327 + src/lib-dict-extra/dict-register.c | 26 + src/lib-dict-extra/test-dict-fs.c | 115 + src/lib-dict/Makefile.am | 70 + src/lib-dict/Makefile.in | 958 + src/lib-dict/dict-fail.c | 135 + src/lib-dict/dict-file.c | 733 + src/lib-dict/dict-iter-lua.c | 193 + src/lib-dict/dict-lua-private.h | 9 + src/lib-dict/dict-lua.c | 156 + src/lib-dict/dict-lua.h | 22 + src/lib-dict/dict-private.h | 136 + src/lib-dict/dict-redis.c | 870 + src/lib-dict/dict-transaction-memory.c | 59 + src/lib-dict/dict-transaction-memory.h | 38 + src/lib-dict/dict-txn-lua.c | 286 + src/lib-dict/dict.c | 949 + src/lib-dict/dict.h | 237 + src/lib-dict/test-dict.c | 44 + src/lib-dns-client/Makefile.am | 55 + src/lib-dns-client/Makefile.in | 906 + src/lib-dns-client/dns-client-cache.c | 192 + src/lib-dns-client/dns-client-cache.h | 32 + src/lib-dns-client/dns-lookup.c | 576 + src/lib-dns-client/dns-lookup.h | 104 + src/lib-dns-client/dns-lua.c | 115 + src/lib-dns-client/dns-lua.h | 15 + src/lib-dns-client/test-dns-lookup.c | 397 + src/lib-dns/Makefile.am | 33 + src/lib-dns/Makefile.in | 859 + src/lib-dns/dns-util.c | 85 + src/lib-dns/dns-util.h | 36 + src/lib-dns/test-dns-util.c | 124 + src/lib-doveadm/Makefile.am | 40 + src/lib-doveadm/Makefile.in | 868 + src/lib-doveadm/doveadm-client-lua.c | 194 + src/lib-doveadm/doveadm-client-lua.h | 19 + src/lib-doveadm/doveadm-client.c | 970 + src/lib-doveadm/doveadm-client.h | 102 + src/lib-doveadm/doveadm-protocol.c | 91 + src/lib-doveadm/doveadm-protocol.h | 36 + src/lib-dovecot/Makefile.am | 11 + src/lib-dovecot/Makefile.in | 714 + src/lib-fs/Makefile.am | 75 + src/lib-fs/Makefile.in | 970 + src/lib-fs/fs-api-private.h | 220 + src/lib-fs/fs-api.c | 1554 + src/lib-fs/fs-api.h | 402 + src/lib-fs/fs-dict.c | 407 + src/lib-fs/fs-metawrap.c | 519 + src/lib-fs/fs-posix.c | 1055 + src/lib-fs/fs-randomfail.c | 559 + src/lib-fs/fs-sis-common.c | 59 + src/lib-fs/fs-sis-common.h | 14 + src/lib-fs/fs-sis-queue.c | 224 + src/lib-fs/fs-sis.c | 277 + src/lib-fs/fs-test-async.c | 103 + src/lib-fs/fs-test.c | 443 + src/lib-fs/fs-test.h | 45 + src/lib-fs/fs-wrapper.c | 172 + src/lib-fs/fs-wrapper.h | 40 + src/lib-fs/istream-fs-file.c | 61 + src/lib-fs/istream-fs-file.h | 13 + src/lib-fs/istream-fs-stats.c | 47 + src/lib-fs/istream-fs-stats.h | 9 + src/lib-fs/istream-metawrap.c | 152 + src/lib-fs/istream-metawrap.h | 14 + src/lib-fs/ostream-cmp.c | 95 + src/lib-fs/ostream-cmp.h | 15 + src/lib-fs/ostream-metawrap.c | 71 + src/lib-fs/ostream-metawrap.h | 8 + src/lib-fs/test-fs-metawrap.c | 130 + src/lib-fs/test-fs-posix.c | 156 + src/lib-http/Makefile.am | 218 + src/lib-http/Makefile.in | 1339 + src/lib-http/http-auth.c | 476 + src/lib-http/http-auth.h | 79 + src/lib-http/http-client-connection.c | 1840 + src/lib-http/http-client-host.c | 504 + src/lib-http/http-client-peer.c | 1378 + src/lib-http/http-client-private.h | 726 + src/lib-http/http-client-queue.c | 1038 + src/lib-http/http-client-request.c | 2062 + src/lib-http/http-client-settings.c | 180 + src/lib-http/http-client.c | 697 + src/lib-http/http-client.h | 549 + src/lib-http/http-common.h | 7 + src/lib-http/http-date.c | 487 + src/lib-http/http-date.h | 17 + src/lib-http/http-header-parser.c | 366 + src/lib-http/http-header-parser.h | 24 + src/lib-http/http-header.c | 98 + src/lib-http/http-header.h | 45 + src/lib-http/http-message-parser.c | 658 + src/lib-http/http-message-parser.h | 77 + src/lib-http/http-parser.c | 208 + src/lib-http/http-parser.h | 63 + src/lib-http/http-request-parser.c | 635 + src/lib-http/http-request-parser.h | 43 + src/lib-http/http-request.c | 32 + src/lib-http/http-request.h | 84 + src/lib-http/http-response-parser.c | 421 + src/lib-http/http-response-parser.h | 26 + src/lib-http/http-response.c | 46 + src/lib-http/http-response.h | 87 + src/lib-http/http-server-connection.c | 1207 + src/lib-http/http-server-ostream.c | 328 + src/lib-http/http-server-private.h | 352 + src/lib-http/http-server-request.c | 1012 + src/lib-http/http-server-resource.c | 270 + src/lib-http/http-server-response.c | 818 + src/lib-http/http-server-settings.c | 82 + src/lib-http/http-server.c | 133 + src/lib-http/http-server.h | 444 + src/lib-http/http-transfer-chunked.c | 748 + src/lib-http/http-transfer.h | 26 + src/lib-http/http-url.c | 687 + src/lib-http/http-url.h | 108 + src/lib-http/test-http-auth.c | 274 + src/lib-http/test-http-client-errors.c | 3820 ++ src/lib-http/test-http-client-request.c | 95 + src/lib-http/test-http-client.c | 485 + src/lib-http/test-http-date.c | 223 + src/lib-http/test-http-header-parser.c | 381 + src/lib-http/test-http-payload.c | 2492 + src/lib-http/test-http-request-parser.c | 701 + src/lib-http/test-http-response-parser.c | 406 + src/lib-http/test-http-server-errors.c | 1043 + src/lib-http/test-http-server.c | 245 + src/lib-http/test-http-transfer.c | 347 + src/lib-http/test-http-url.c | 953 + src/lib-imap-client/Makefile.am | 64 + src/lib-imap-client/Makefile.in | 905 + src/lib-imap-client/imapc-client-private.h | 77 + src/lib-imap-client/imapc-client.c | 574 + src/lib-imap-client/imapc-client.h | 213 + src/lib-imap-client/imapc-connection.c | 2653 + src/lib-imap-client/imapc-connection.h | 65 + src/lib-imap-client/imapc-msgmap.c | 89 + src/lib-imap-client/imapc-msgmap.h | 18 + src/lib-imap-client/imapc-settings.c | 193 + src/lib-imap-client/imapc-settings.h | 71 + src/lib-imap-client/test-imapc-client.c | 911 + src/lib-imap-storage/Makefile.am | 24 + src/lib-imap-storage/Makefile.in | 835 + src/lib-imap-storage/imap-metadata.c | 312 + src/lib-imap-storage/imap-metadata.h | 61 + src/lib-imap-storage/imap-msgpart-url.c | 287 + src/lib-imap-storage/imap-msgpart-url.h | 51 + src/lib-imap-storage/imap-msgpart.c | 866 + src/lib-imap-storage/imap-msgpart.h | 68 + src/lib-imap-urlauth/Makefile.am | 31 + src/lib-imap-urlauth/Makefile.in | 847 + src/lib-imap-urlauth/imap-urlauth-backend.c | 173 + src/lib-imap-urlauth/imap-urlauth-backend.h | 16 + .../imap-urlauth-connection.c | 1128 + .../imap-urlauth-connection.h | 45 + src/lib-imap-urlauth/imap-urlauth-fetch.c | 526 + src/lib-imap-urlauth/imap-urlauth-fetch.h | 56 + src/lib-imap-urlauth/imap-urlauth-private.h | 20 + src/lib-imap-urlauth/imap-urlauth.c | 590 + src/lib-imap-urlauth/imap-urlauth.h | 56 + src/lib-imap/Makefile.am | 127 + src/lib-imap/Makefile.in | 1222 + src/lib-imap/fuzz-imap-bodystructure.c | 159 + src/lib-imap/fuzz-imap-utf7.c | 15 + src/lib-imap/imap-arg.c | 137 + src/lib-imap/imap-arg.h | 108 + src/lib-imap/imap-base-subject.c | 244 + src/lib-imap/imap-base-subject.h | 13 + src/lib-imap/imap-bodystructure.c | 991 + src/lib-imap/imap-bodystructure.h | 39 + src/lib-imap/imap-date.c | 283 + src/lib-imap/imap-date.h | 25 + src/lib-imap/imap-envelope.c | 242 + src/lib-imap/imap-envelope.h | 20 + src/lib-imap/imap-id.c | 63 + src/lib-imap/imap-id.h | 28 + src/lib-imap/imap-keepalive.c | 47 + src/lib-imap/imap-keepalive.h | 24 + src/lib-imap/imap-match.c | 382 + src/lib-imap/imap-match.h | 42 + src/lib-imap/imap-parser.c | 1026 + src/lib-imap/imap-parser.h | 117 + src/lib-imap/imap-quote.c | 244 + src/lib-imap/imap-quote.h | 21 + src/lib-imap/imap-resp-code.h | 28 + src/lib-imap/imap-seqset.c | 105 + src/lib-imap/imap-seqset.h | 15 + src/lib-imap/imap-stats.h | 13 + src/lib-imap/imap-url.c | 1013 + src/lib-imap/imap-url.h | 83 + src/lib-imap/imap-utf7.c | 380 + src/lib-imap/imap-utf7.h | 28 + src/lib-imap/imap-util.c | 226 + src/lib-imap/imap-util.h | 34 + src/lib-imap/test-imap-bodystructure.c | 760 + src/lib-imap/test-imap-date.c | 111 + src/lib-imap/test-imap-envelope.c | 205 + src/lib-imap/test-imap-match.c | 127 + src/lib-imap/test-imap-parser.c | 162 + src/lib-imap/test-imap-quote.c | 171 + src/lib-imap/test-imap-url.c | 1431 + src/lib-imap/test-imap-utf7.c | 216 + src/lib-imap/test-imap-util.c | 96 + src/lib-index/Makefile.am | 153 + src/lib-index/Makefile.in | 1298 + src/lib-index/mail-cache-decisions.c | 293 + src/lib-index/mail-cache-fields.c | 701 + src/lib-index/mail-cache-lookup.c | 694 + src/lib-index/mail-cache-private.h | 425 + src/lib-index/mail-cache-purge.c | 737 + src/lib-index/mail-cache-sync-update.c | 68 + src/lib-index/mail-cache-transaction.c | 937 + src/lib-index/mail-cache.c | 1005 + src/lib-index/mail-cache.h | 200 + src/lib-index/mail-index-alloc-cache.c | 315 + src/lib-index/mail-index-alloc-cache.h | 20 + src/lib-index/mail-index-dummy-view.c | 47 + src/lib-index/mail-index-fsck.c | 495 + src/lib-index/mail-index-lock.c | 61 + src/lib-index/mail-index-map-hdr.c | 381 + src/lib-index/mail-index-map-read.c | 539 + src/lib-index/mail-index-map.c | 583 + src/lib-index/mail-index-modseq.c | 478 + src/lib-index/mail-index-modseq.h | 47 + src/lib-index/mail-index-private.h | 442 + src/lib-index/mail-index-strmap.c | 1256 + src/lib-index/mail-index-strmap.h | 81 + src/lib-index/mail-index-sync-ext.c | 735 + src/lib-index/mail-index-sync-keywords.c | 346 + src/lib-index/mail-index-sync-private.h | 104 + src/lib-index/mail-index-sync-update.c | 1078 + src/lib-index/mail-index-sync.c | 1070 + src/lib-index/mail-index-transaction-export.c | 533 + src/lib-index/mail-index-transaction-finish.c | 350 + .../mail-index-transaction-private.h | 160 + .../mail-index-transaction-sort-appends.c | 184 + src/lib-index/mail-index-transaction-update.c | 1369 + src/lib-index/mail-index-transaction-view.c | 534 + src/lib-index/mail-index-transaction.c | 358 + src/lib-index/mail-index-util.c | 147 + src/lib-index/mail-index-util.h | 22 + src/lib-index/mail-index-view-private.h | 120 + src/lib-index/mail-index-view-sync.c | 1045 + src/lib-index/mail-index-view.c | 651 + src/lib-index/mail-index-write.c | 211 + src/lib-index/mail-index.c | 1134 + src/lib-index/mail-index.h | 829 + src/lib-index/mail-transaction-log-append.c | 254 + src/lib-index/mail-transaction-log-file.c | 1706 + src/lib-index/mail-transaction-log-modseq.c | 298 + src/lib-index/mail-transaction-log-private.h | 202 + .../mail-transaction-log-view-private.h | 33 + src/lib-index/mail-transaction-log-view.c | 918 + src/lib-index/mail-transaction-log.c | 646 + src/lib-index/mail-transaction-log.h | 491 + src/lib-index/mailbox-log.c | 292 + src/lib-index/mailbox-log.h | 44 + src/lib-index/test-mail-cache-common.c | 167 + src/lib-index/test-mail-cache-fields.c | 114 + src/lib-index/test-mail-cache-purge.c | 1115 + src/lib-index/test-mail-cache.c | 826 + src/lib-index/test-mail-cache.h | 32 + src/lib-index/test-mail-index-map.c | 57 + src/lib-index/test-mail-index-modseq.c | 77 + src/lib-index/test-mail-index-sync-ext.c | 86 + .../test-mail-index-transaction-finish.c | 297 + .../test-mail-index-transaction-update.c | 686 + src/lib-index/test-mail-index-write.c | 151 + src/lib-index/test-mail-index.c | 169 + src/lib-index/test-mail-index.h | 52 + .../test-mail-transaction-log-append.c | 172 + .../test-mail-transaction-log-file.c | 418 + .../test-mail-transaction-log-view.c | 268 + src/lib-json/Makefile.am | 136 + src/lib-json/Makefile.in | 1181 + src/lib-json/fuzz-json-istream.c | 36 + src/lib-json/json-format.c | 141 + src/lib-json/json-generator.c | 1669 + src/lib-json/json-generator.h | 115 + src/lib-json/json-istream.c | 1050 + src/lib-json/json-istream.h | 197 + src/lib-json/json-ostream.c | 1358 + src/lib-json/json-ostream.h | 312 + src/lib-json/json-parser.c | 2450 + src/lib-json/json-parser.h | 111 + src/lib-json/json-syntax.c | 37 + src/lib-json/json-syntax.h | 41 + src/lib-json/json-text.c | 81 + src/lib-json/json-text.h | 22 + src/lib-json/json-tree-io.c | 92 + src/lib-json/json-tree-io.h | 36 + src/lib-json/json-tree.c | 749 + src/lib-json/json-tree.h | 271 + src/lib-json/json-types.c | 84 + src/lib-json/json-types.h | 581 + src/lib-json/test-json-generator.c | 2601 + src/lib-json/test-json-io.c | 1931 + src/lib-json/test-json-istream.c | 3894 ++ src/lib-json/test-json-ostream.c | 2660 + src/lib-json/test-json-parser.c | 2857 ++ src/lib-json/test-json-tree-io.c | 497 + src/lib-json/test-json-tree.c | 506 + src/lib-language/Makefile.am | 155 + src/lib-language/Makefile.in | 1151 + src/lib-language/PropList.txt | 1928 + src/lib-language/WordBreakProperty.txt | 1516 + src/lib-language/lang-common.h | 48 + src/lib-language/lang-filter-contractions.c | 83 + .../lang-filter-english-possessive.c | 47 + src/lib-language/lang-filter-lowercase.c | 52 + src/lib-language/lang-filter-normalizer-icu.c | 124 + src/lib-language/lang-filter-private.h | 36 + .../lang-filter-stemmer-snowball.c | 136 + src/lib-language/lang-filter-stopwords.c | 117 + src/lib-language/lang-filter.c | 128 + src/lib-language/lang-filter.h | 73 + src/lib-language/lang-icu.c | 204 + src/lib-language/lang-icu.h | 28 + src/lib-language/lang-indexer-status.h | 16 + src/lib-language/lang-library.c | 21 + src/lib-language/lang-library.h | 7 + src/lib-language/lang-settings.c | 162 + src/lib-language/lang-settings.h | 37 + src/lib-language/lang-tokenizer-address.c | 396 + src/lib-language/lang-tokenizer-common.c | 35 + src/lib-language/lang-tokenizer-common.h | 9 + .../lang-tokenizer-generic-private.h | 57 + src/lib-language/lang-tokenizer-generic.c | 888 + src/lib-language/lang-tokenizer-private.h | 55 + src/lib-language/lang-tokenizer.c | 255 + src/lib-language/lang-tokenizer.h | 89 + src/lib-language/language.c | 345 + src/lib-language/language.h | 76 + src/lib-language/stopwords/stopwords_da.txt | 109 + src/lib-language/stopwords/stopwords_de.txt | 293 + src/lib-language/stopwords/stopwords_en.txt | 54 + src/lib-language/stopwords/stopwords_es.txt | 355 + src/lib-language/stopwords/stopwords_fi.txt | 260 + src/lib-language/stopwords/stopwords_fr.txt | 184 + src/lib-language/stopwords/stopwords_it.txt | 302 + .../stopwords/stopwords_malformed.txt | 2866 ++ src/lib-language/stopwords/stopwords_nl.txt | 118 + src/lib-language/stopwords/stopwords_no.txt | 192 + src/lib-language/stopwords/stopwords_pt.txt | 252 + src/lib-language/stopwords/stopwords_ro.txt | 233 + src/lib-language/stopwords/stopwords_ru.txt | 242 + src/lib-language/stopwords/stopwords_sv.txt | 131 + src/lib-language/stopwords/stopwords_tr.txt | 529 + src/lib-language/test-lang-filter.c | 959 + src/lib-language/test-lang-icu.c | 202 + src/lib-language/test-lang-tokenizer.c | 712 + src/lib-language/test-language.c | 338 + src/lib-language/udhr_fra.txt | 217 + src/lib-language/word-boundary-data.c | 4756 ++ src/lib-language/word-break-data.c | 64 + src/lib-language/word-properties.pl | 34 + src/lib-lda/Makefile.am | 34 + src/lib-lda/Makefile.in | 889 + src/lib-lda/lda-settings.c | 76 + src/lib-lda/lda-settings.h | 25 + src/lib-lda/mail-deliver.c | 817 + src/lib-lda/mail-deliver.h | 185 + src/lib-lda/mail-send.c | 220 + src/lib-lda/mail-send.h | 11 + src/lib-ldap/Makefile.am | 53 + src/lib-ldap/Makefile.in | 934 + src/lib-ldap/ldap-client.c | 91 + src/lib-ldap/ldap-client.h | 86 + src/lib-ldap/ldap-compare.c | 121 + src/lib-ldap/ldap-connection-pool.c | 114 + src/lib-ldap/ldap-connection-pool.h | 29 + src/lib-ldap/ldap-connection.c | 664 + src/lib-ldap/ldap-entry.c | 72 + src/lib-ldap/ldap-iterator.c | 29 + src/lib-ldap/ldap-private.h | 129 + src/lib-ldap/ldap-search.c | 169 + src/lib-ldap/ldap-settings-parse.h | 19 + src/lib-ldap/ldap-settings.c | 89 + src/lib-ldap/ldap-settings.h | 26 + src/lib-ldap/ldap-utils.c | 120 + src/lib-ldap/ldap-utils.h | 21 + src/lib-login/Makefile.am | 64 + src/lib-login/Makefile.in | 906 + src/lib-login/login-client.c | 276 + src/lib-login/login-client.h | 43 + src/lib-login/login-interface.h | 69 + src/lib-login/login-server-auth.c | 638 + src/lib-login/login-server-auth.h | 32 + src/lib-login/login-server.c | 602 + src/lib-login/login-server.h | 69 + src/lib-login/test-login-server-auth.c | 994 + src/lib-lua/Makefile.am | 94 + src/lib-lua/Makefile.in | 1064 + src/lib-lua/dlua-compat.c | 154 + src/lib-lua/dlua-compat.h | 69 + src/lib-lua/dlua-dovecot-http.c | 525 + src/lib-lua/dlua-dovecot.c | 807 + src/lib-lua/dlua-error.c | 13 + src/lib-lua/dlua-pushstring.c | 26 + src/lib-lua/dlua-resume.c | 218 + src/lib-lua/dlua-script-private.h | 288 + src/lib-lua/dlua-script.c | 532 + src/lib-lua/dlua-script.h | 40 + src/lib-lua/dlua-table.c | 368 + src/lib-lua/dlua-thread.c | 276 + src/lib-lua/dlua-wrapper.h | 186 + src/lib-lua/test-dict-lua.c | 107 + src/lib-lua/test-dns-lua.c | 200 + src/lib-lua/test-lua-http-client.c | 834 + src/lib-lua/test-lua-http-client.lua | 77 + src/lib-lua/test-lua.c | 530 + src/lib-mail/Makefile.am | 258 + src/lib-mail/Makefile.in | 1628 + src/lib-mail/fuzz-message-parser.c | 28 + src/lib-mail/html-entities.h | 253 + src/lib-mail/istream-attachment-connector.c | 149 + src/lib-mail/istream-attachment-connector.h | 28 + src/lib-mail/istream-attachment-extractor.c | 763 + src/lib-mail/istream-attachment-extractor.h | 62 + src/lib-mail/istream-binary-converter.c | 309 + src/lib-mail/istream-binary-converter.h | 6 + src/lib-mail/istream-dot.c | 247 + src/lib-mail/istream-dot.h | 21 + src/lib-mail/istream-header-filter.c | 764 + src/lib-mail/istream-header-filter.h | 52 + src/lib-mail/istream-qp-decoder.c | 140 + src/lib-mail/istream-qp-encoder.c | 127 + src/lib-mail/istream-qp.h | 12 + src/lib-mail/mail-html2text.c | 354 + src/lib-mail/mail-html2text.h | 22 + src/lib-mail/mail-types.h | 25 + src/lib-mail/mbox-from.c | 301 + src/lib-mail/mbox-from.h | 12 + src/lib-mail/message-address.c | 681 + src/lib-mail/message-address.h | 71 + src/lib-mail/message-binary-part.c | 44 + src/lib-mail/message-binary-part.h | 29 + src/lib-mail/message-date.c | 283 + src/lib-mail/message-date.h | 12 + src/lib-mail/message-decoder.c | 390 + src/lib-mail/message-decoder.h | 54 + src/lib-mail/message-header-decode.c | 188 + src/lib-mail/message-header-decode.h | 22 + src/lib-mail/message-header-encode.c | 406 + src/lib-mail/message-header-encode.h | 27 + src/lib-mail/message-header-hash.c | 72 + src/lib-mail/message-header-hash.h | 18 + src/lib-mail/message-header-parser.c | 505 + src/lib-mail/message-header-parser.h | 95 + src/lib-mail/message-id.c | 129 + src/lib-mail/message-id.h | 8 + src/lib-mail/message-parser-from-parts.c | 365 + src/lib-mail/message-parser-private.h | 64 + src/lib-mail/message-parser.c | 924 + src/lib-mail/message-parser.h | 118 + src/lib-mail/message-part-data.c | 595 + src/lib-mail/message-part-data.h | 101 + src/lib-mail/message-part-serialize.c | 266 + src/lib-mail/message-part-serialize.h | 16 + src/lib-mail/message-part.c | 132 + src/lib-mail/message-part.h | 81 + src/lib-mail/message-search.c | 235 + src/lib-mail/message-search.h | 40 + src/lib-mail/message-size.c | 177 + src/lib-mail/message-size.h | 30 + src/lib-mail/message-snippet.c | 207 + src/lib-mail/message-snippet.h | 14 + src/lib-mail/ostream-dot.c | 235 + src/lib-mail/ostream-dot.h | 15 + src/lib-mail/qp-decoder.c | 285 + src/lib-mail/qp-decoder.h | 19 + src/lib-mail/qp-encoder.c | 162 + src/lib-mail/qp-encoder.h | 25 + src/lib-mail/quoted-printable.c | 49 + src/lib-mail/quoted-printable.h | 8 + src/lib-mail/rfc2231-parser.c | 354 + src/lib-mail/rfc2231-parser.h | 13 + src/lib-mail/rfc822-parser.c | 564 + src/lib-mail/rfc822-parser.h | 75 + src/lib-mail/test-istream-attachment.c | 477 + src/lib-mail/test-istream-binary-converter.c | 215 + src/lib-mail/test-istream-dot.c | 271 + src/lib-mail/test-istream-header-filter.c | 701 + src/lib-mail/test-istream-qp-decoder.c | 197 + src/lib-mail/test-istream-qp-encoder.c | 160 + src/lib-mail/test-mail-html2text.c | 120 + src/lib-mail/test-mbox-from.c | 104 + src/lib-mail/test-message-address.c | 568 + src/lib-mail/test-message-date.c | 64 + src/lib-mail/test-message-decoder.c | 513 + src/lib-mail/test-message-header-decode.c | 216 + src/lib-mail/test-message-header-encode.c | 295 + src/lib-mail/test-message-header-hash.c | 111 + src/lib-mail/test-message-header-parser.c | 546 + src/lib-mail/test-message-id.c | 46 + src/lib-mail/test-message-parser.c | 1552 + src/lib-mail/test-message-part-data.c | 175 + src/lib-mail/test-message-part-serialize.c | 266 + src/lib-mail/test-message-part.c | 117 + src/lib-mail/test-message-search.c | 521 + src/lib-mail/test-message-size.c | 207 + src/lib-mail/test-message-snippet.c | 329 + src/lib-mail/test-ostream-dot.c | 103 + src/lib-mail/test-qp-decoder.c | 188 + src/lib-mail/test-qp-encoder.c | 206 + src/lib-mail/test-quoted-printable.c | 52 + src/lib-mail/test-rfc2231-parser.c | 270 + src/lib-mail/test-rfc822-parser.c | 470 + src/lib-master/Makefile.am | 84 + src/lib-master/Makefile.in | 973 + src/lib-master/anvil-client.c | 412 + src/lib-master/anvil-client.h | 63 + src/lib-master/log-error-buffer.c | 122 + src/lib-master/log-error-buffer.h | 24 + src/lib-master/master-admin-client.c | 221 + src/lib-master/master-admin-client.h | 36 + src/lib-master/master-instance.c | 369 + src/lib-master/master-instance.h | 42 + src/lib-master/master-interface.h | 146 + src/lib-master/master-service-haproxy.c | 714 + src/lib-master/master-service-private.h | 133 + src/lib-master/master-service-settings.c | 584 + src/lib-master/master-service-settings.h | 98 + src/lib-master/master-service-ssl.c | 55 + src/lib-master/master-service-ssl.h | 9 + src/lib-master/master-service.c | 2177 + src/lib-master/master-service.h | 342 + src/lib-master/service-settings.h | 97 + src/lib-master/stats-client.c | 469 + src/lib-master/stats-client.h | 10 + src/lib-master/syslog-util.c | 65 + src/lib-master/syslog-util.h | 14 + src/lib-master/test-event-stats.c | 570 + src/lib-master/test-master-service-settings.c | 337 + src/lib-master/test-master-service.c | 67 + src/lib-oauth2/Makefile.am | 86 + src/lib-oauth2/Makefile.in | 951 + src/lib-oauth2/oauth2-jwt.c | 642 + src/lib-oauth2/oauth2-key-cache.c | 158 + src/lib-oauth2/oauth2-private.h | 49 + src/lib-oauth2/oauth2-request.c | 424 + src/lib-oauth2/oauth2.c | 22 + src/lib-oauth2/oauth2.h | 162 + src/lib-oauth2/test-oauth2-json.c | 179 + src/lib-oauth2/test-oauth2-jwt.c | 1001 + src/lib-otp/Makefile.am | 17 + src/lib-otp/Makefile.in | 781 + src/lib-otp/otp-dictionary.c | 589 + src/lib-otp/otp-dictionary.h | 6 + src/lib-otp/otp-hash.c | 165 + src/lib-otp/otp-hash.h | 26 + src/lib-otp/otp-parity.c | 29 + src/lib-otp/otp-parity.h | 16 + src/lib-otp/otp-parse.c | 253 + src/lib-otp/otp-parse.h | 16 + src/lib-otp/otp.h | 22 + src/lib-pop3/Makefile.am | 6 + src/lib-pop3/Makefile.in | 722 + src/lib-pop3/pop3-capability.h | 14 + src/lib-pop3/pop3-protocol.h | 7 + src/lib-program-client/Makefile.am | 62 + src/lib-program-client/Makefile.in | 932 + src/lib-program-client/program-client-local.c | 544 + .../program-client-private.h | 86 + .../program-client-remote.c | 697 + src/lib-program-client/program-client.c | 938 + src/lib-program-client/program-client.h | 119 + .../test-program-client-local.c | 285 + .../test-program-client-net.c | 554 + .../test-program-client-unix.c | 503 + src/lib-sasl/Makefile.am | 51 + src/lib-sasl/Makefile.in | 900 + src/lib-sasl/dsasl-client-private.h | 69 + src/lib-sasl/dsasl-client.c | 172 + src/lib-sasl/dsasl-client.h | 64 + src/lib-sasl/mech-anonymous.c | 55 + src/lib-sasl/mech-external.c | 60 + src/lib-sasl/mech-login.c | 75 + src/lib-sasl/mech-oauthbearer.c | 211 + src/lib-sasl/mech-plain.c | 70 + src/lib-sasl/mech-scram.c | 177 + src/lib-sasl/test-sasl-client.c | 419 + src/lib-settings/Makefile.am | 57 + src/lib-settings/Makefile.in | 908 + src/lib-settings/settings-history-core.txt | 4 + src/lib-settings/settings-history.c | 51 + src/lib-settings/settings-history.h | 29 + src/lib-settings/settings-history.pl | 53 + src/lib-settings/settings-parser.c | 1253 + src/lib-settings/settings-parser.h | 333 + src/lib-settings/settings.c | 3039 ++ src/lib-settings/settings.h | 317 + src/lib-settings/test-settings-parser.c | 405 + src/lib-settings/test-settings.c | 351 + src/lib-smtp/Makefile.am | 204 + src/lib-smtp/Makefile.in | 1388 + src/lib-smtp/fuzz-smtp-server.c | 102 + src/lib-smtp/smtp-address.c | 958 + src/lib-smtp/smtp-address.h | 214 + src/lib-smtp/smtp-client-command.c | 1580 + src/lib-smtp/smtp-client-command.h | 274 + src/lib-smtp/smtp-client-connection.c | 2559 + src/lib-smtp/smtp-client-connection.h | 96 + src/lib-smtp/smtp-client-private.h | 338 + src/lib-smtp/smtp-client-transaction.c | 1656 + src/lib-smtp/smtp-client-transaction.h | 259 + src/lib-smtp/smtp-client.c | 147 + src/lib-smtp/smtp-client.h | 130 + src/lib-smtp/smtp-command-parser.c | 638 + src/lib-smtp/smtp-command-parser.h | 58 + src/lib-smtp/smtp-command.h | 38 + src/lib-smtp/smtp-common.c | 98 + src/lib-smtp/smtp-common.h | 125 + src/lib-smtp/smtp-dovecot.c | 112 + src/lib-smtp/smtp-dovecot.h | 35 + src/lib-smtp/smtp-params.c | 1401 + src/lib-smtp/smtp-params.h | 235 + src/lib-smtp/smtp-parser.c | 625 + src/lib-smtp/smtp-parser.h | 89 + src/lib-smtp/smtp-reply-parser.c | 656 + src/lib-smtp/smtp-reply-parser.h | 25 + src/lib-smtp/smtp-reply.c | 186 + src/lib-smtp/smtp-reply.h | 95 + src/lib-smtp/smtp-server-cmd-auth.c | 246 + src/lib-smtp/smtp-server-cmd-data.c | 680 + src/lib-smtp/smtp-server-cmd-helo.c | 199 + src/lib-smtp/smtp-server-cmd-mail.c | 215 + src/lib-smtp/smtp-server-cmd-noop.c | 52 + src/lib-smtp/smtp-server-cmd-quit.c | 42 + src/lib-smtp/smtp-server-cmd-rcpt.c | 242 + src/lib-smtp/smtp-server-cmd-rset.c | 70 + src/lib-smtp/smtp-server-cmd-starttls.c | 179 + src/lib-smtp/smtp-server-cmd-vrfy.c | 73 + src/lib-smtp/smtp-server-cmd-xclient.c | 245 + src/lib-smtp/smtp-server-command.c | 897 + src/lib-smtp/smtp-server-connection.c | 1781 + src/lib-smtp/smtp-server-private.h | 398 + src/lib-smtp/smtp-server-recipient.c | 361 + src/lib-smtp/smtp-server-reply.c | 900 + src/lib-smtp/smtp-server-transaction.c | 361 + src/lib-smtp/smtp-server.c | 137 + src/lib-smtp/smtp-server.h | 817 + src/lib-smtp/smtp-submit-settings.c | 61 + src/lib-smtp/smtp-submit-settings.h | 18 + src/lib-smtp/smtp-submit.c | 494 + src/lib-smtp/smtp-submit.h | 67 + src/lib-smtp/smtp-syntax.c | 327 + src/lib-smtp/smtp-syntax.h | 49 + src/lib-smtp/test-bin/sendmail-exit-1.sh | 4 + src/lib-smtp/test-bin/sendmail-success.sh | 4 + src/lib-smtp/test-smtp-address.c | 1409 + src/lib-smtp/test-smtp-client-errors.c | 4188 ++ src/lib-smtp/test-smtp-command-parser.c | 653 + src/lib-smtp/test-smtp-params.c | 894 + src/lib-smtp/test-smtp-payload.c | 1179 + src/lib-smtp/test-smtp-reply.c | 279 + src/lib-smtp/test-smtp-server-errors.c | 4184 ++ src/lib-smtp/test-smtp-submit.c | 2206 + src/lib-smtp/test-smtp-syntax.c | 150 + src/lib-sql/Makefile.am | 167 + src/lib-sql/Makefile.in | 1240 + src/lib-sql/driver-cassandra.c | 2942 ++ src/lib-sql/driver-mysql.c | 955 + src/lib-sql/driver-pgsql.c | 1497 + src/lib-sql/driver-sqlite.c | 751 + src/lib-sql/driver-sqlpool.c | 889 + src/lib-sql/driver-test.c | 525 + src/lib-sql/driver-test.h | 28 + src/lib-sql/sql-api-private.h | 296 + src/lib-sql/sql-api.c | 915 + src/lib-sql/sql-api.h | 260 + src/lib-sql/test-sql-sqlite.c | 80 + src/lib-sql/test-sql.c | 142 + src/lib-ssl-iostream/Makefile.am | 65 + src/lib-ssl-iostream/Makefile.in | 980 + src/lib-ssl-iostream/dovecot-openssl-common.c | 140 + src/lib-ssl-iostream/dovecot-openssl-common.h | 16 + .../iostream-openssl-common.c | 197 + .../iostream-openssl-context.c | 956 + src/lib-ssl-iostream/iostream-openssl.c | 1043 + src/lib-ssl-iostream/iostream-openssl.h | 138 + .../iostream-ssl-context-cache.c | 148 + src/lib-ssl-iostream/iostream-ssl-private.h | 76 + src/lib-ssl-iostream/iostream-ssl-test.c | 171 + src/lib-ssl-iostream/iostream-ssl-test.h | 9 + src/lib-ssl-iostream/iostream-ssl.c | 446 + src/lib-ssl-iostream/iostream-ssl.h | 283 + src/lib-ssl-iostream/istream-openssl.c | 130 + src/lib-ssl-iostream/ostream-openssl.c | 339 + src/lib-ssl-iostream/ssl-settings.c | 286 + src/lib-ssl-iostream/ssl-settings.h | 70 + src/lib-ssl-iostream/test-iostream-ssl.c | 563 + src/lib-storage/Makefile.am | 213 + src/lib-storage/Makefile.in | 1522 + src/lib-storage/fail-mail-storage.c | 49 + src/lib-storage/fail-mail-storage.h | 19 + src/lib-storage/fail-mail.c | 269 + src/lib-storage/fail-mailbox.c | 339 + src/lib-storage/index/Makefile.am | 61 + src/lib-storage/index/Makefile.in | 1074 + src/lib-storage/index/dbox-common/Makefile.am | 30 + src/lib-storage/index/dbox-common/Makefile.in | 854 + .../index/dbox-common/dbox-attachment.c | 78 + .../index/dbox-common/dbox-attachment.h | 16 + .../index/dbox-common/dbox-file-fix.c | 522 + src/lib-storage/index/dbox-common/dbox-file.c | 798 + src/lib-storage/index/dbox-common/dbox-file.h | 219 + src/lib-storage/index/dbox-common/dbox-mail.c | 311 + src/lib-storage/index/dbox-common/dbox-mail.h | 34 + src/lib-storage/index/dbox-common/dbox-save.c | 226 + src/lib-storage/index/dbox-common/dbox-save.h | 41 + .../index/dbox-common/dbox-storage.c | 458 + .../index/dbox-common/dbox-storage.h | 89 + src/lib-storage/index/dbox-multi/Makefile.am | 37 + src/lib-storage/index/dbox-multi/Makefile.in | 877 + .../index/dbox-multi/mdbox-deleted-storage.c | 318 + src/lib-storage/index/dbox-multi/mdbox-file.c | 351 + src/lib-storage/index/dbox-multi/mdbox-file.h | 29 + src/lib-storage/index/dbox-multi/mdbox-mail.c | 277 + .../index/dbox-multi/mdbox-map-private.h | 65 + src/lib-storage/index/dbox-multi/mdbox-map.c | 1503 + src/lib-storage/index/dbox-multi/mdbox-map.h | 144 + .../index/dbox-multi/mdbox-purge.c | 692 + src/lib-storage/index/dbox-multi/mdbox-save.c | 497 + .../index/dbox-multi/mdbox-settings.c | 44 + .../index/dbox-multi/mdbox-settings.h | 13 + .../index/dbox-multi/mdbox-storage-rebuild.c | 1052 + .../index/dbox-multi/mdbox-storage-rebuild.h | 19 + .../index/dbox-multi/mdbox-storage.c | 549 + .../index/dbox-multi/mdbox-storage.h | 120 + src/lib-storage/index/dbox-multi/mdbox-sync.c | 390 + src/lib-storage/index/dbox-multi/mdbox-sync.h | 35 + src/lib-storage/index/dbox-single/Makefile.am | 33 + src/lib-storage/index/dbox-single/Makefile.in | 865 + .../index/dbox-single/sdbox-copy.c | 185 + .../index/dbox-single/sdbox-file.c | 452 + .../index/dbox-single/sdbox-file.h | 43 + .../index/dbox-single/sdbox-mail.c | 183 + .../index/dbox-single/sdbox-save.c | 361 + .../index/dbox-single/sdbox-settings.c | 33 + .../index/dbox-single/sdbox-settings.h | 10 + .../index/dbox-single/sdbox-storage.c | 545 + .../index/dbox-single/sdbox-storage.h | 70 + .../index/dbox-single/sdbox-sync-rebuild.c | 182 + .../index/dbox-single/sdbox-sync.c | 327 + .../index/dbox-single/sdbox-sync.h | 38 + src/lib-storage/index/imapc/Makefile.am | 39 + src/lib-storage/index/imapc/Makefile.in | 873 + src/lib-storage/index/imapc/imapc-attribute.c | 376 + src/lib-storage/index/imapc/imapc-attribute.h | 21 + src/lib-storage/index/imapc/imapc-list.c | 1057 + src/lib-storage/index/imapc/imapc-list.h | 42 + .../index/imapc/imapc-mail-fetch.c | 909 + src/lib-storage/index/imapc/imapc-mail.c | 675 + src/lib-storage/index/imapc/imapc-mail.h | 51 + src/lib-storage/index/imapc/imapc-mailbox.c | 1016 + src/lib-storage/index/imapc/imapc-save.c | 829 + src/lib-storage/index/imapc/imapc-search.c | 332 + src/lib-storage/index/imapc/imapc-search.h | 18 + src/lib-storage/index/imapc/imapc-storage.c | 1414 + src/lib-storage/index/imapc/imapc-storage.h | 278 + src/lib-storage/index/imapc/imapc-sync.c | 705 + src/lib-storage/index/imapc/imapc-sync.h | 39 + src/lib-storage/index/index-attachment.c | 449 + src/lib-storage/index/index-attachment.h | 52 + src/lib-storage/index/index-attribute.c | 337 + src/lib-storage/index/index-mail-binary.c | 611 + src/lib-storage/index/index-mail-headers.c | 997 + src/lib-storage/index/index-mail.c | 2635 + src/lib-storage/index/index-mail.h | 304 + src/lib-storage/index/index-mailbox-size.c | 502 + src/lib-storage/index/index-mailbox-size.h | 20 + src/lib-storage/index/index-pop3-uidl.c | 104 + src/lib-storage/index/index-pop3-uidl.h | 16 + src/lib-storage/index/index-rebuild.c | 257 + src/lib-storage/index/index-rebuild.h | 32 + src/lib-storage/index/index-search-mime.c | 624 + src/lib-storage/index/index-search-private.h | 46 + src/lib-storage/index/index-search-result.c | 194 + src/lib-storage/index/index-search-result.h | 11 + src/lib-storage/index/index-search.c | 1943 + src/lib-storage/index/index-sort-private.h | 35 + src/lib-storage/index/index-sort-string.c | 955 + src/lib-storage/index/index-sort.c | 738 + src/lib-storage/index/index-sort.h | 18 + src/lib-storage/index/index-status.c | 329 + src/lib-storage/index/index-storage.c | 1312 + src/lib-storage/index/index-storage.h | 194 + src/lib-storage/index/index-sync-changes.c | 200 + src/lib-storage/index/index-sync-changes.h | 28 + src/lib-storage/index/index-sync-private.h | 38 + src/lib-storage/index/index-sync-pvt.c | 345 + src/lib-storage/index/index-sync-search.c | 97 + src/lib-storage/index/index-sync.c | 560 + src/lib-storage/index/index-thread-finish.c | 682 + src/lib-storage/index/index-thread-links.c | 242 + src/lib-storage/index/index-thread-private.h | 82 + src/lib-storage/index/index-thread.c | 670 + src/lib-storage/index/index-transaction.c | 230 + src/lib-storage/index/istream-mail.c | 180 + src/lib-storage/index/istream-mail.h | 7 + src/lib-storage/index/maildir/Makefile.am | 38 + src/lib-storage/index/maildir/Makefile.in | 887 + src/lib-storage/index/maildir/maildir-copy.c | 149 + .../index/maildir/maildir-filename-flags.c | 185 + .../index/maildir/maildir-filename-flags.h | 13 + .../index/maildir/maildir-filename.c | 143 + .../index/maildir/maildir-filename.h | 14 + .../index/maildir/maildir-keywords.c | 499 + .../index/maildir/maildir-keywords.h | 36 + src/lib-storage/index/maildir/maildir-mail.c | 811 + src/lib-storage/index/maildir/maildir-save.c | 1085 + .../index/maildir/maildir-settings.c | 47 + .../index/maildir/maildir-settings.h | 14 + .../index/maildir/maildir-storage.c | 783 + .../index/maildir/maildir-storage.h | 146 + .../index/maildir/maildir-sync-index.c | 811 + src/lib-storage/index/maildir/maildir-sync.c | 1134 + src/lib-storage/index/maildir/maildir-sync.h | 59 + .../index/maildir/maildir-uidlist.c | 2156 + .../index/maildir/maildir-uidlist.h | 161 + src/lib-storage/index/maildir/maildir-util.c | 323 + src/lib-storage/index/mbox/Makefile.am | 40 + src/lib-storage/index/mbox/Makefile.in | 895 + src/lib-storage/index/mbox/istream-raw-mbox.c | 821 + src/lib-storage/index/mbox/istream-raw-mbox.h | 56 + src/lib-storage/index/mbox/mbox-file.c | 207 + src/lib-storage/index/mbox/mbox-file.h | 16 + src/lib-storage/index/mbox/mbox-lock.c | 895 + src/lib-storage/index/mbox/mbox-lock.h | 15 + src/lib-storage/index/mbox/mbox-mail.c | 436 + src/lib-storage/index/mbox/mbox-md5-all.c | 39 + src/lib-storage/index/mbox/mbox-md5-apop3d.c | 119 + src/lib-storage/index/mbox/mbox-md5.h | 17 + src/lib-storage/index/mbox/mbox-save.c | 834 + src/lib-storage/index/mbox/mbox-settings.c | 58 + src/lib-storage/index/mbox/mbox-settings.h | 19 + src/lib-storage/index/mbox/mbox-storage.c | 881 + src/lib-storage/index/mbox/mbox-storage.h | 114 + .../index/mbox/mbox-sync-list-index.c | 109 + src/lib-storage/index/mbox/mbox-sync-parse.c | 616 + .../index/mbox/mbox-sync-private.h | 192 + .../index/mbox/mbox-sync-rewrite.c | 610 + src/lib-storage/index/mbox/mbox-sync-update.c | 466 + src/lib-storage/index/mbox/mbox-sync.c | 2064 + src/lib-storage/index/pop3c/Makefile.am | 30 + src/lib-storage/index/pop3c/Makefile.in | 849 + src/lib-storage/index/pop3c/pop3c-client.c | 889 + src/lib-storage/index/pop3c/pop3c-client.h | 85 + src/lib-storage/index/pop3c/pop3c-mail.c | 304 + src/lib-storage/index/pop3c/pop3c-settings.c | 108 + src/lib-storage/index/pop3c/pop3c-settings.h | 34 + src/lib-storage/index/pop3c/pop3c-storage.c | 368 + src/lib-storage/index/pop3c/pop3c-storage.h | 51 + src/lib-storage/index/pop3c/pop3c-sync.c | 361 + src/lib-storage/index/pop3c/pop3c-sync.h | 14 + src/lib-storage/index/raw/Makefile.am | 24 + src/lib-storage/index/raw/Makefile.in | 835 + src/lib-storage/index/raw/raw-mail.c | 152 + src/lib-storage/index/raw/raw-storage.c | 293 + src/lib-storage/index/raw/raw-storage.h | 44 + src/lib-storage/index/raw/raw-sync.c | 67 + src/lib-storage/index/raw/raw-sync.h | 9 + src/lib-storage/index/shared/Makefile.am | 21 + src/lib-storage/index/shared/Makefile.in | 829 + src/lib-storage/index/shared/shared-list.c | 308 + src/lib-storage/index/shared/shared-storage.c | 494 + src/lib-storage/index/shared/shared-storage.h | 23 + src/lib-storage/lang-user.c | 398 + src/lib-storage/lang-user.h | 28 + src/lib-storage/list/Makefile.am | 47 + src/lib-storage/list/Makefile.in | 928 + .../list/mail-storage-list-index-rebuild.c | 639 + src/lib-storage/list/mailbox-list-delete.c | 491 + src/lib-storage/list/mailbox-list-delete.h | 87 + src/lib-storage/list/mailbox-list-fs-flags.c | 246 + src/lib-storage/list/mailbox-list-fs-iter.c | 933 + src/lib-storage/list/mailbox-list-fs.c | 593 + src/lib-storage/list/mailbox-list-fs.h | 28 + .../list/mailbox-list-index-backend.c | 980 + .../list/mailbox-list-index-iter.c | 268 + .../list/mailbox-list-index-notify.c | 967 + .../list/mailbox-list-index-status.c | 863 + .../list/mailbox-list-index-storage.h | 21 + .../list/mailbox-list-index-sync.c | 528 + .../list/mailbox-list-index-sync.h | 35 + src/lib-storage/list/mailbox-list-index.c | 1247 + src/lib-storage/list/mailbox-list-index.h | 254 + .../list/mailbox-list-iter-private.h | 46 + src/lib-storage/list/mailbox-list-iter.c | 1196 + .../list/mailbox-list-maildir-iter.c | 524 + src/lib-storage/list/mailbox-list-maildir.c | 553 + src/lib-storage/list/mailbox-list-maildir.h | 29 + src/lib-storage/list/mailbox-list-none.c | 179 + .../list/mailbox-list-notify-tree.c | 131 + .../list/mailbox-list-notify-tree.h | 27 + .../list/mailbox-list-subscriptions.c | 320 + .../list/mailbox-list-subscriptions.h | 33 + src/lib-storage/list/subscription-file.c | 380 + src/lib-storage/list/subscription-file.h | 25 + src/lib-storage/mail-autoexpunge.c | 277 + src/lib-storage/mail-autoexpunge.h | 8 + src/lib-storage/mail-copy.c | 126 + src/lib-storage/mail-copy.h | 20 + src/lib-storage/mail-duplicate.c | 768 + src/lib-storage/mail-duplicate.h | 49 + src/lib-storage/mail-error.c | 37 + src/lib-storage/mail-error.h | 73 + src/lib-storage/mail-lua.c | 142 + src/lib-storage/mail-namespace.c | 920 + src/lib-storage/mail-namespace.h | 215 + src/lib-storage/mail-search-args-cmdline.c | 106 + src/lib-storage/mail-search-args-imap.c | 326 + src/lib-storage/mail-search-args-simplify.c | 822 + src/lib-storage/mail-search-build.c | 250 + src/lib-storage/mail-search-build.h | 59 + src/lib-storage/mail-search-mime-build.c | 173 + src/lib-storage/mail-search-mime-build.h | 44 + src/lib-storage/mail-search-mime-register.c | 547 + src/lib-storage/mail-search-mime-register.h | 30 + src/lib-storage/mail-search-mime.c | 609 + src/lib-storage/mail-search-mime.h | 146 + src/lib-storage/mail-search-parser-cmdline.c | 98 + src/lib-storage/mail-search-parser-imap.c | 122 + src/lib-storage/mail-search-parser-private.h | 22 + src/lib-storage/mail-search-parser.c | 49 + src/lib-storage/mail-search-parser.h | 34 + src/lib-storage/mail-search-register-human.c | 232 + src/lib-storage/mail-search-register-imap.c | 637 + src/lib-storage/mail-search-register.c | 89 + src/lib-storage/mail-search-register.h | 46 + src/lib-storage/mail-search.c | 898 + src/lib-storage/mail-search.h | 287 + src/lib-storage/mail-storage-hooks.c | 285 + src/lib-storage/mail-storage-hooks.h | 53 + src/lib-storage/mail-storage-lua-private.h | 31 + src/lib-storage/mail-storage-lua.c | 89 + src/lib-storage/mail-storage-lua.h | 17 + src/lib-storage/mail-storage-private.h | 948 + src/lib-storage/mail-storage-register.c | 31 + src/lib-storage/mail-storage-service.c | 1625 + src/lib-storage/mail-storage-service.h | 235 + src/lib-storage/mail-storage-settings.c | 1116 + src/lib-storage/mail-storage-settings.h | 228 + src/lib-storage/mail-storage.c | 3747 ++ src/lib-storage/mail-storage.h | 1080 + src/lib-storage/mail-thread.c | 37 + src/lib-storage/mail-thread.h | 54 + src/lib-storage/mail-user-lua.c | 395 + src/lib-storage/mail-user.c | 727 + src/lib-storage/mail-user.h | 238 + src/lib-storage/mail.c | 738 + src/lib-storage/mailbox-attribute-internal.c | 150 + src/lib-storage/mailbox-attribute-internal.h | 14 + src/lib-storage/mailbox-attribute-lua.c | 156 + src/lib-storage/mailbox-attribute-private.h | 15 + src/lib-storage/mailbox-attribute.c | 610 + src/lib-storage/mailbox-attribute.h | 322 + src/lib-storage/mailbox-get.c | 239 + src/lib-storage/mailbox-guid-cache.c | 120 + src/lib-storage/mailbox-guid-cache.h | 8 + src/lib-storage/mailbox-header.c | 114 + src/lib-storage/mailbox-keywords.c | 148 + src/lib-storage/mailbox-list-iter.h | 91 + src/lib-storage/mailbox-list-notify.c | 42 + src/lib-storage/mailbox-list-notify.h | 67 + src/lib-storage/mailbox-list-private.h | 254 + src/lib-storage/mailbox-list-register.c | 26 + src/lib-storage/mailbox-list.c | 1916 + src/lib-storage/mailbox-list.h | 280 + src/lib-storage/mailbox-lua.c | 365 + src/lib-storage/mailbox-recent-flags.c | 106 + src/lib-storage/mailbox-recent-flags.h | 19 + .../mailbox-search-result-private.h | 41 + src/lib-storage/mailbox-search-result.c | 194 + src/lib-storage/mailbox-tree.c | 345 + src/lib-storage/mailbox-tree.h | 45 + src/lib-storage/mailbox-uidvalidity.c | 249 + src/lib-storage/mailbox-uidvalidity.h | 8 + src/lib-storage/mailbox-watch.c | 152 + src/lib-storage/mailbox-watch.h | 11 + src/lib-storage/test-mail-search-args-imap.c | 179 + .../test-mail-search-args-simplify.c | 335 + src/lib-storage/test-mail-storage-common.c | 116 + src/lib-storage/test-mail-storage-common.h | 28 + src/lib-storage/test-mail-storage.c | 756 + src/lib-storage/test-mail.c | 758 + src/lib-storage/test-mailbox-get.c | 162 + src/lib-storage/test-mailbox-list.c | 520 + src/lib-test/Makefile.am | 22 + src/lib-test/Makefile.in | 846 + src/lib-test/fuzzer.c | 100 + src/lib-test/fuzzer.h | 40 + src/lib-test/ostream-final-trickle.c | 152 + src/lib-test/ostream-final-trickle.h | 9 + src/lib-test/test-common.c | 489 + src/lib-test/test-common.h | 184 + src/lib-test/test-istream.c | 168 + src/lib-test/test-ostream.c | 194 + src/lib-test/test-subprocess.c | 457 + src/lib-test/test-subprocess.h | 51 + src/lib-var-expand-crypt/Makefile.am | 45 + src/lib-var-expand-crypt/Makefile.in | 925 + .../test-var-expand-crypt.c | 205 + src/lib-var-expand-crypt/var-expand-crypt.c | 329 + src/lib-var-expand/Makefile.am | 72 + src/lib-var-expand/Makefile.in | 965 + src/lib-var-expand/expansion-filter-crypt.c | 52 + src/lib-var-expand/expansion-filter-if.c | 266 + src/lib-var-expand/expansion-filter.c | 1236 + src/lib-var-expand/expansion-parameter.c | 200 + src/lib-var-expand/expansion-program.c | 633 + src/lib-var-expand/expansion-statement.c | 63 + src/lib-var-expand/expansion.h | 46 + src/lib-var-expand/test-var-expand.c | 1224 + src/lib-var-expand/var-expand-lexer.c | 2551 + src/lib-var-expand/var-expand-lexer.l | 193 + .../var-expand-parser-private.h | 30 + src/lib-var-expand/var-expand-parser.c | 2093 + src/lib-var-expand/var-expand-parser.h | 106 + src/lib-var-expand/var-expand-parser.y | 297 + src/lib-var-expand/var-expand-private.h | 146 + src/lib-var-expand/var-expand.c | 500 + src/lib-var-expand/var-expand.h | 207 + src/lib/Makefile.am | 481 + src/lib/Makefile.in | 3700 ++ src/lib/UnicodeData.txt | 40116 ++++++++++++++++ src/lib/aqueue.c | 124 + src/lib/aqueue.h | 41 + src/lib/array-decl.h | 27 + src/lib/array.c | 195 + src/lib/array.h | 460 + src/lib/askpass.c | 72 + src/lib/askpass.h | 7 + src/lib/backtrace-string.c | 181 + src/lib/backtrace-string.h | 8 + src/lib/base32.c | 324 + src/lib/base32.h | 47 + src/lib/base64.c | 968 + src/lib/base64.h | 397 + src/lib/bits.c | 36 + src/lib/bits.h | 184 + src/lib/bsearch-insert-pos.c | 48 + src/lib/bsearch-insert-pos.h | 52 + src/lib/buffer-istream.c | 49 + src/lib/buffer.c | 509 + src/lib/buffer.h | 231 + src/lib/byteorder.h | 272 + src/lib/child-wait.c | 139 + src/lib/child-wait.h | 34 + src/lib/compat.h | 182 + src/lib/connection.c | 1104 + src/lib/connection.h | 329 + src/lib/cpu-count.c | 39 + src/lib/cpu-count.h | 9 + src/lib/cpu-limit.c | 201 + src/lib/cpu-limit.h | 67 + src/lib/crc32.c | 91 + src/lib/crc32.h | 10 + src/lib/data-stack.c | 784 + src/lib/data-stack.h | 167 + src/lib/doc.h | 10 + src/lib/eacces-error.c | 319 + src/lib/eacces-error.h | 14 + src/lib/env-util.c | 140 + src/lib/env-util.h | 30 + src/lib/event-filter-lexer.c | 2287 + src/lib/event-filter-lexer.l | 131 + src/lib/event-filter-parser.c | 1894 + src/lib/event-filter-parser.h | 96 + src/lib/event-filter-parser.y | 237 + src/lib/event-filter-private.h | 138 + src/lib/event-filter.c | 1278 + src/lib/event-filter.h | 90 + src/lib/event-log.c | 488 + src/lib/event-log.h | 138 + src/lib/execv-const.c | 33 + src/lib/execv-const.h | 9 + src/lib/failures-private.h | 22 + src/lib/failures.c | 1015 + src/lib/failures.h | 160 + src/lib/fd-util.c | 173 + src/lib/fd-util.h | 26 + src/lib/fdatasync-path.c | 31 + src/lib/fdatasync-path.h | 7 + src/lib/fdpass.c | 212 + src/lib/fdpass.h | 15 + src/lib/file-cache.c | 337 + src/lib/file-cache.h | 37 + src/lib/file-copy.c | 125 + src/lib/file-copy.h | 12 + src/lib/file-create-locked.c | 193 + src/lib/file-create-locked.h | 47 + src/lib/file-dotlock.c | 925 + src/lib/file-dotlock.h | 94 + src/lib/file-lock.c | 524 + src/lib/file-lock.h | 85 + src/lib/file-set-size.c | 105 + src/lib/file-set-size.h | 13 + src/lib/fsync-mode.h | 14 + src/lib/guid.c | 182 + src/lib/guid.h | 59 + src/lib/hash-decl.h | 20 + src/lib/hash-format.c | 245 + src/lib/hash-format.h | 23 + src/lib/hash-method.c | 98 + src/lib/hash-method.h | 55 + src/lib/hash.c | 593 + src/lib/hash.h | 183 + src/lib/hash2.c | 242 + src/lib/hash2.h | 56 + src/lib/hex-binary.c | 85 + src/lib/hex-binary.h | 15 + src/lib/hex-dec.c | 38 + src/lib/hex-dec.h | 12 + src/lib/hmac-cram-md5.c | 65 + src/lib/hmac-cram-md5.h | 14 + src/lib/hmac.c | 153 + src/lib/hmac.h | 65 + src/lib/home-expand.c | 72 + src/lib/home-expand.h | 12 + src/lib/hook-build.c | 121 + src/lib/hook-build.h | 19 + src/lib/hostpid.c | 69 + src/lib/hostpid.h | 21 + src/lib/imem.c | 78 + src/lib/imem.h | 45 + src/lib/ioloop-epoll.c | 230 + src/lib/ioloop-iolist.c | 56 + src/lib/ioloop-iolist.h | 19 + src/lib/ioloop-kqueue.c | 190 + src/lib/ioloop-notify-fd.c | 55 + src/lib/ioloop-notify-fd.h | 28 + src/lib/ioloop-notify-inotify.c | 237 + src/lib/ioloop-notify-kqueue.c | 224 + src/lib/ioloop-notify-none.c | 33 + src/lib/ioloop-poll.c | 221 + src/lib/ioloop-private.h | 129 + src/lib/ioloop-select.c | 148 + src/lib/ioloop.c | 1383 + src/lib/ioloop.h | 330 + src/lib/iostream-multiplex-private.h | 15 + src/lib/iostream-private.h | 51 + src/lib/iostream-proxy.c | 173 + src/lib/iostream-proxy.h | 87 + src/lib/iostream-pump.c | 251 + src/lib/iostream-pump.h | 69 + src/lib/iostream-rawlog-private.h | 24 + src/lib/iostream-rawlog.c | 319 + src/lib/iostream-rawlog.h | 28 + src/lib/iostream-temp.c | 404 + src/lib/iostream-temp.h | 31 + src/lib/iostream.c | 154 + src/lib/iostream.h | 10 + src/lib/ipwd.c | 103 + src/lib/ipwd.h | 23 + src/lib/iso8601-date.c | 309 + src/lib/iso8601-date.h | 21 + src/lib/istream-base64-decoder.c | 171 + src/lib/istream-base64-encoder.c | 226 + src/lib/istream-base64.h | 16 + src/lib/istream-callback.c | 118 + src/lib/istream-callback.h | 39 + src/lib/istream-chain.c | 349 + src/lib/istream-chain.h | 21 + src/lib/istream-concat.c | 400 + src/lib/istream-concat.h | 7 + src/lib/istream-crlf.c | 208 + src/lib/istream-crlf.h | 9 + src/lib/istream-data.c | 62 + src/lib/istream-failure-at.c | 96 + src/lib/istream-failure-at.h | 11 + src/lib/istream-file-private.h | 23 + src/lib/istream-file.c | 282 + src/lib/istream-hash.c | 87 + src/lib/istream-hash.h | 12 + src/lib/istream-limit.c | 144 + src/lib/istream-multiplex.c | 527 + src/lib/istream-multiplex.h | 8 + src/lib/istream-nonuls.c | 79 + src/lib/istream-nonuls.h | 7 + src/lib/istream-noop.c | 46 + src/lib/istream-private.h | 140 + src/lib/istream-rawlog.c | 121 + src/lib/istream-rawlog.h | 14 + src/lib/istream-seekable.c | 589 + src/lib/istream-seekable.h | 28 + src/lib/istream-sized.c | 232 + src/lib/istream-sized.h | 41 + src/lib/istream-tee.c | 258 + src/lib/istream-tee.h | 17 + src/lib/istream-timeout.c | 150 + src/lib/istream-timeout.h | 9 + src/lib/istream-try.c | 165 + src/lib/istream-try.h | 25 + src/lib/istream-unix.c | 113 + src/lib/istream-unix.h | 15 + src/lib/istream.c | 1330 + src/lib/istream.h | 260 + src/lib/lib-event-private.h | 116 + src/lib/lib-event.c | 1896 + src/lib/lib-event.h | 473 + src/lib/lib-signals.c | 729 + src/lib/lib-signals.h | 84 + src/lib/lib.c | 226 + src/lib/lib.h | 161 + src/lib/llist.h | 95 + src/lib/log-throttle.c | 78 + src/lib/log-throttle.h | 32 + src/lib/macros.h | 295 + src/lib/malloc-overflow.h | 54 + src/lib/md4.c | 285 + src/lib/md4.h | 33 + src/lib/md5.c | 302 + src/lib/md5.h | 33 + src/lib/memarea.c | 93 + src/lib/memarea.h | 31 + src/lib/mempool-allocfree.c | 332 + src/lib/mempool-alloconly.c | 548 + src/lib/mempool-datastack.c | 193 + src/lib/mempool-null.c | 67 + src/lib/mempool-system.c | 163 + src/lib/mempool-unsafe-datastack.c | 138 + src/lib/mempool.c | 49 + src/lib/mempool.h | 196 + src/lib/mkdir-parents.c | 191 + src/lib/mkdir-parents.h | 37 + src/lib/mmap-anon.c | 183 + src/lib/mmap-util.c | 53 + src/lib/mmap-util.h | 30 + src/lib/module-context.h | 130 + src/lib/module-dir.c | 634 + src/lib/module-dir.h | 77 + src/lib/mountpoint.c | 336 + src/lib/mountpoint.h | 23 + src/lib/net.c | 1263 + src/lib/net.h | 196 + src/lib/nfs-workarounds.c | 406 + src/lib/nfs-workarounds.h | 40 + src/lib/numpack.c | 57 + src/lib/numpack.h | 11 + src/lib/ostream-buffer.c | 88 + src/lib/ostream-failure-at.c | 123 + src/lib/ostream-failure-at.h | 10 + src/lib/ostream-file-private.h | 46 + src/lib/ostream-file.c | 1189 + src/lib/ostream-hash.c | 56 + src/lib/ostream-hash.h | 12 + src/lib/ostream-multiplex.c | 561 + src/lib/ostream-multiplex.h | 17 + src/lib/ostream-null.c | 33 + src/lib/ostream-null.h | 7 + src/lib/ostream-private.h | 73 + src/lib/ostream-rawlog.c | 99 + src/lib/ostream-rawlog.h | 14 + src/lib/ostream-unix.c | 93 + src/lib/ostream-unix.h | 10 + src/lib/ostream-wrapper.c | 1259 + src/lib/ostream-wrapper.h | 165 + src/lib/ostream.c | 820 + src/lib/ostream.h | 267 + src/lib/path-util.c | 398 + src/lib/path-util.h | 69 + src/lib/pkcs5.c | 97 + src/lib/pkcs5.h | 35 + src/lib/primes.c | 48 + src/lib/primes.h | 8 + src/lib/printf-format-fix.c | 196 + src/lib/printf-format-fix.h | 15 + src/lib/priorityq.c | 171 + src/lib/priorityq.h | 39 + src/lib/process-stat.c | 274 + src/lib/process-stat.h | 26 + src/lib/process-title.c | 194 + src/lib/process-title.h | 19 + src/lib/punycode.c | 150 + src/lib/punycode.h | 8 + src/lib/rand.c | 101 + src/lib/randgen.c | 214 + src/lib/randgen.h | 28 + src/lib/read-full.c | 43 + src/lib/read-full.h | 9 + src/lib/restrict-access.c | 531 + src/lib/restrict-access.h | 90 + src/lib/restrict-process-size.c | 111 + src/lib/restrict-process-size.h | 25 + src/lib/safe-memset.c | 17 + src/lib/safe-memset.h | 8 + src/lib/safe-mkdir.c | 78 + src/lib/safe-mkdir.h | 10 + src/lib/safe-mkstemp.c | 106 + src/lib/safe-mkstemp.h | 15 + src/lib/sendfile-util.c | 137 + src/lib/sendfile-util.h | 16 + src/lib/seq-range-array.c | 569 + src/lib/seq-range-array.h | 82 + src/lib/seq-set-builder.c | 113 + src/lib/seq-set-builder.h | 15 + src/lib/sha-common.h | 12 + src/lib/sha1.c | 288 + src/lib/sha1.h | 84 + src/lib/sha2.c | 656 + src/lib/sha2.h | 89 + src/lib/sha3.c | 335 + src/lib/sha3.h | 75 + src/lib/sleep.c | 74 + src/lib/sleep.h | 30 + src/lib/sort.c | 17 + src/lib/sort.h | 33 + src/lib/stats-dist.c | 183 + src/lib/stats-dist.h | 40 + src/lib/str-find.c | 183 + src/lib/str-find.h | 20 + src/lib/str-parse.c | 167 + src/lib/str-parse.h | 18 + src/lib/str-sanitize.c | 166 + src/lib/str-sanitize.h | 22 + src/lib/str-table.c | 78 + src/lib/str-table.h | 19 + src/lib/str.c | 158 + src/lib/str.h | 110 + src/lib/strescape.c | 358 + src/lib/strescape.h | 43 + src/lib/strfuncs.c | 994 + src/lib/strfuncs.h | 235 + src/lib/strnum.c | 490 + src/lib/strnum.h | 203 + src/lib/test-aqueue.c | 73 + src/lib/test-array.c | 477 + src/lib/test-backtrace.c | 58 + src/lib/test-base32.c | 189 + src/lib/test-base64.c | 1320 + src/lib/test-bits.c | 281 + src/lib/test-bsearch-insert-pos.c | 46 + src/lib/test-buffer-istream.c | 101 + src/lib/test-buffer.c | 367 + src/lib/test-byteorder.c | 251 + src/lib/test-connection.c | 898 + src/lib/test-cpu-limit.c | 147 + src/lib/test-crc32.c | 14 + src/lib/test-data-stack.c | 454 + src/lib/test-env-util.c | 92 + src/lib/test-event-category-register.c | 320 + src/lib/test-event-filter-expr.c | 250 + src/lib/test-event-filter-merge.c | 67 + src/lib/test-event-filter-parser.c | 550 + src/lib/test-event-filter.c | 1148 + src/lib/test-event-flatten.c | 367 + src/lib/test-event-log.c | 2521 + src/lib/test-failures.c | 174 + src/lib/test-fd-util.c | 24 + src/lib/test-file-cache.c | 302 + src/lib/test-file-create-locked.c | 142 + src/lib/test-guid.c | 267 + src/lib/test-hash-format.c | 54 + src/lib/test-hash-method.c | 496 + src/lib/test-hash.c | 49 + src/lib/test-hex-binary.c | 61 + src/lib/test-hmac.c | 302 + src/lib/test-imem.c | 61 + src/lib/test-ioloop.c | 404 + src/lib/test-iostream-proxy.c | 113 + src/lib/test-iostream-pump.c | 325 + src/lib/test-iostream-temp.c | 150 + src/lib/test-iso8601-date.c | 147 + src/lib/test-istream-base64-decoder.c | 337 + src/lib/test-istream-base64-encoder.c | 222 + src/lib/test-istream-chain.c | 199 + src/lib/test-istream-concat.c | 254 + src/lib/test-istream-crlf.c | 115 + src/lib/test-istream-failure-at.c | 49 + src/lib/test-istream-multiplex.c | 445 + src/lib/test-istream-noop.c | 31 + src/lib/test-istream-seekable.c | 290 + src/lib/test-istream-sized.c | 111 + src/lib/test-istream-tee.c | 139 + src/lib/test-istream-try.c | 195 + src/lib/test-istream-unix.c | 187 + src/lib/test-istream.c | 381 + src/lib/test-lib-event.c | 155 + src/lib/test-lib-signals.c | 245 + src/lib/test-lib.c | 28 + src/lib/test-lib.h | 13 + src/lib/test-lib.inc | 112 + src/lib/test-llist.c | 177 + src/lib/test-log-throttle.c | 57 + src/lib/test-macros.c | 63 + src/lib/test-malloc-overflow.c | 132 + src/lib/test-memarea.c | 42 + src/lib/test-mempool-allocfree.c | 128 + src/lib/test-mempool-alloconly.c | 94 + src/lib/test-mempool.c | 117 + src/lib/test-multiplex.c | 168 + src/lib/test-net.c | 249 + src/lib/test-numpack.c | 64 + src/lib/test-ostream-buffer.c | 108 + src/lib/test-ostream-failure-at.c | 52 + src/lib/test-ostream-file.c | 235 + src/lib/test-ostream-multiplex.c | 506 + src/lib/test-path-util.c | 278 + src/lib/test-pkcs5.c | 49 + src/lib/test-primes.c | 24 + src/lib/test-printf-format-fix.c | 142 + src/lib/test-priorityq.c | 106 + src/lib/test-punycode.c | 46 + src/lib/test-random.c | 94 + src/lib/test-seq-range-array.c | 419 + src/lib/test-seq-set-builder.c | 132 + src/lib/test-stats-dist.c | 132 + src/lib/test-str-find.c | 86 + src/lib/test-str-parse.c | 209 + src/lib/test-str-sanitize.c | 129 + src/lib/test-str-table.c | 33 + src/lib/test-str.c | 182 + src/lib/test-strescape.c | 197 + src/lib/test-strfuncs.c | 799 + src/lib/test-strnum.c | 433 + src/lib/test-time-util.c | 438 + src/lib/test-unichar.c | 185 + src/lib/test-uri.c | 865 + src/lib/test-utc-mktime.c | 61 + src/lib/test-wildcard-match.c | 109 + src/lib/time-util.c | 159 + src/lib/time-util.h | 119 + src/lib/unichar.c | 459 + src/lib/unichar.h | 159 + src/lib/unicodemap.c | 2556 + src/lib/unicodemap.pl | 162 + src/lib/unix-socket-create.c | 36 + src/lib/unix-socket-create.h | 7 + src/lib/unlink-directory.c | 283 + src/lib/unlink-directory.h | 21 + src/lib/unlink-old-files.c | 73 + src/lib/unlink-old-files.h | 9 + src/lib/uri-util.c | 1395 + src/lib/uri-util.h | 299 + src/lib/utc-mktime.c | 79 + src/lib/utc-mktime.h | 11 + src/lib/utc-offset.c | 38 + src/lib/utc-offset.h | 9 + src/lib/wildcard-match.c | 190 + src/lib/wildcard-match.h | 24 + src/lib/write-full.c | 57 + src/lib/write-full.h | 10 + src/lmtp/Makefile.am | 56 + src/lmtp/Makefile.in | 927 + src/lmtp/lmtp-client.c | 510 + src/lmtp/lmtp-client.h | 126 + src/lmtp/lmtp-commands.c | 320 + src/lmtp/lmtp-commands.h | 45 + src/lmtp/lmtp-common.h | 35 + src/lmtp/lmtp-local.c | 782 + src/lmtp/lmtp-local.h | 33 + src/lmtp/lmtp-proxy.c | 1138 + src/lmtp/lmtp-proxy.h | 32 + src/lmtp/lmtp-recipient.c | 82 + src/lmtp/lmtp-recipient.h | 51 + src/lmtp/lmtp-settings.c | 220 + src/lmtp/lmtp-settings.h | 55 + src/lmtp/main.c | 158 + src/log/Makefile.am | 25 + src/log/Makefile.in | 830 + src/log/doveadm-connection.c | 86 + src/log/doveadm-connection.h | 6 + src/log/log-connection.c | 547 + src/log/log-connection.h | 15 + src/log/log-settings.c | 39 + src/log/main.c | 100 + src/login-common/Makefile.am | 40 + src/login-common/Makefile.in | 914 + src/login-common/client-common-auth.c | 1180 + src/login-common/client-common.c | 1558 + src/login-common/client-common.h | 437 + src/login-common/login-common.h | 81 + src/login-common/login-proxy-state.c | 169 + src/login-common/login-proxy-state.h | 40 + src/login-common/login-proxy.c | 1388 + src/login-common/login-proxy.h | 153 + src/login-common/login-settings.c | 106 + src/login-common/login-settings.h | 38 + src/login-common/main.c | 538 + src/login-common/sasl-server.c | 660 + src/login-common/sasl-server.h | 48 + src/master/Makefile.am | 53 + src/master/Makefile.in | 889 + src/master/capabilities-posix.c | 37 + src/master/capabilities.h | 14 + src/master/common.h | 29 + src/master/dup2-array.c | 78 + src/master/dup2-array.h | 13 + src/master/main.c | 969 + src/master/master-client.c | 223 + src/master/master-client.h | 9 + src/master/master-settings.c | 1112 + src/master/master-settings.h | 37 + src/master/service-anvil.c | 203 + src/master/service-anvil.h | 36 + src/master/service-listen.c | 513 + src/master/service-listen.h | 21 + src/master/service-log.c | 172 + src/master/service-log.h | 13 + src/master/service-monitor.c | 897 + src/master/service-monitor.h | 18 + src/master/service-process-notify.c | 101 + src/master/service-process-notify.h | 15 + src/master/service-process.c | 757 + src/master/service-process.h | 58 + src/master/service.c | 779 + src/master/service.h | 219 + src/plugins/Makefile.am | 42 + src/plugins/Makefile.in | 810 + src/plugins/acl/Makefile.am | 85 + src/plugins/acl/Makefile.in | 1059 + src/plugins/acl/acl-api-private.h | 111 + src/plugins/acl/acl-api.c | 398 + src/plugins/acl/acl-api.h | 81 + src/plugins/acl/acl-attributes.c | 233 + src/plugins/acl/acl-backend-vfile-acllist.c | 426 + src/plugins/acl/acl-backend-vfile-update.c | 265 + src/plugins/acl/acl-backend-vfile.c | 561 + src/plugins/acl/acl-backend-vfile.h | 86 + src/plugins/acl/acl-backend.c | 276 + src/plugins/acl/acl-cache.c | 395 + src/plugins/acl/acl-cache.h | 57 + src/plugins/acl/acl-global-file.c | 250 + src/plugins/acl/acl-global-file.h | 23 + src/plugins/acl/acl-lookup-dict.c | 375 + src/plugins/acl/acl-lookup-dict.h | 21 + src/plugins/acl/acl-mailbox-list.c | 595 + src/plugins/acl/acl-mailbox.c | 732 + src/plugins/acl/acl-plugin.c | 29 + src/plugins/acl/acl-plugin.h | 67 + src/plugins/acl/acl-rights.c | 477 + src/plugins/acl/acl-rights.h | 160 + src/plugins/acl/acl-settings.c | 139 + src/plugins/acl/acl-settings.h | 32 + src/plugins/acl/acl-shared-storage.c | 96 + src/plugins/acl/acl-shared-storage.h | 6 + src/plugins/acl/acl-storage.c | 48 + src/plugins/acl/acl-storage.h | 50 + src/plugins/acl/doveadm-acl.c | 643 + src/plugins/acl/test-acl.c | 66 + src/plugins/apparmor/Makefile.am | 16 + src/plugins/apparmor/Makefile.in | 828 + src/plugins/apparmor/apparmor-plugin.c | 138 + src/plugins/charset-alias/Makefile.am | 21 + src/plugins/charset-alias/Makefile.in | 834 + .../charset-alias/charset-alias-plugin.c | 194 + .../charset-alias/charset-alias-plugin.h | 7 + src/plugins/fs-compress/Makefile.am | 16 + src/plugins/fs-compress/Makefile.in | 823 + src/plugins/fs-compress/fs-compress.c | 302 + src/plugins/fts-flatcurve/Makefile.am | 54 + src/plugins/fts-flatcurve/Makefile.in | 981 + .../fts-flatcurve/doveadm-dump-flatcurve.c | 142 + .../fts-flatcurve/doveadm-dump-flatcurve.h | 9 + .../fts-flatcurve/doveadm-fts-flatcurve.c | 308 + .../fts-backend-flatcurve-xapian.cc | 2345 + .../fts-backend-flatcurve-xapian.h | 96 + .../fts-flatcurve/fts-backend-flatcurve.c | 752 + .../fts-flatcurve/fts-backend-flatcurve.h | 68 + .../fts-flatcurve/fts-flatcurve-plugin.c | 81 + .../fts-flatcurve/fts-flatcurve-plugin.h | 35 + .../fts-flatcurve/fts-flatcurve-settings.c | 43 + .../fts-flatcurve/fts-flatcurve-settings.h | 20 + src/plugins/fts-solr/Makefile.am | 67 + src/plugins/fts-solr/Makefile.in | 980 + src/plugins/fts-solr/fts-backend-solr.c | 992 + src/plugins/fts-solr/fts-solr-plugin.c | 84 + src/plugins/fts-solr/fts-solr-plugin.h | 31 + src/plugins/fts-solr/fts-solr-settings.c | 65 + src/plugins/fts-solr/fts-solr-settings.h | 21 + src/plugins/fts-solr/solr-connection.c | 320 + src/plugins/fts-solr/solr-connection.h | 25 + src/plugins/fts-solr/solr-response.c | 380 + src/plugins/fts-solr/solr-response.h | 24 + src/plugins/fts-solr/test-solr-response.c | 299 + src/plugins/fts/Makefile.am | 75 + src/plugins/fts/Makefile.in | 1147 + src/plugins/fts/decode2text.sh | 105 + src/plugins/fts/doveadm-fts.c | 487 + src/plugins/fts/doveadm-fts.h | 9 + src/plugins/fts/fts-api-private.h | 143 + src/plugins/fts/fts-api.c | 669 + src/plugins/fts/fts-api.h | 175 + src/plugins/fts/fts-build-mail.c | 761 + src/plugins/fts/fts-build-mail.h | 12 + src/plugins/fts/fts-indexer.c | 319 + src/plugins/fts/fts-indexer.h | 22 + src/plugins/fts/fts-parser-html.c | 64 + src/plugins/fts/fts-parser-script.c | 279 + src/plugins/fts/fts-parser-tika.c | 285 + src/plugins/fts/fts-parser.c | 129 + src/plugins/fts/fts-parser.h | 49 + src/plugins/fts/fts-plugin.c | 34 + src/plugins/fts/fts-plugin.h | 7 + src/plugins/fts/fts-search-args.c | 260 + src/plugins/fts/fts-search-args.h | 7 + src/plugins/fts/fts-search-serialize.c | 99 + src/plugins/fts/fts-search-serialize.h | 16 + src/plugins/fts/fts-search.c | 416 + src/plugins/fts/fts-settings.c | 162 + src/plugins/fts/fts-settings.h | 39 + src/plugins/fts/fts-storage.c | 975 + src/plugins/fts/fts-storage.h | 74 + src/plugins/fts/fts-user.c | 81 + src/plugins/fts/fts-user.h | 14 + src/plugins/fts/xml2text.c | 54 + src/plugins/imap-acl/Makefile.am | 33 + src/plugins/imap-acl/Makefile.in | 843 + src/plugins/imap-acl/imap-acl-plugin.c | 1255 + src/plugins/imap-acl/imap-acl-plugin.h | 12 + src/plugins/imap-quota/Makefile.am | 27 + src/plugins/imap-quota/Makefile.in | 837 + src/plugins/imap-quota/imap-quota-plugin.c | 235 + src/plugins/imap-quota/imap-quota-plugin.h | 12 + src/plugins/last-login/Makefile.am | 21 + src/plugins/last-login/Makefile.in | 834 + src/plugins/last-login/last-login-plugin.c | 193 + src/plugins/last-login/last-login-plugin.h | 7 + src/plugins/lazy-expunge/Makefile.am | 24 + src/plugins/lazy-expunge/Makefile.in | 842 + .../lazy-expunge/lazy-expunge-plugin.c | 471 + .../lazy-expunge/lazy-expunge-plugin.h | 18 + .../lazy-expunge/lazy-expunge-settings.c | 32 + src/plugins/mail-compress/Makefile.am | 26 + src/plugins/mail-compress/Makefile.in | 840 + .../mail-compress/mail-compress-plugin.c | 411 + .../mail-compress/mail-compress-plugin.h | 14 + src/plugins/mail-crypt/Makefile.am | 115 + src/plugins/mail-crypt/Makefile.in | 1223 + src/plugins/mail-crypt/crypt-settings.c | 105 + src/plugins/mail-crypt/crypt-settings.h | 38 + src/plugins/mail-crypt/doveadm-mail-crypt.c | 1040 + src/plugins/mail-crypt/fs-crypt.c | 344 + .../mail-crypt/mail-crypt-acl-plugin.c | 415 + src/plugins/mail-crypt/mail-crypt-common.h | 24 + .../mail-crypt/mail-crypt-global-key.c | 227 + .../mail-crypt/mail-crypt-global-key.h | 46 + src/plugins/mail-crypt/mail-crypt-key.c | 1226 + src/plugins/mail-crypt/mail-crypt-key.h | 113 + src/plugins/mail-crypt/mail-crypt-plugin.c | 478 + src/plugins/mail-crypt/mail-crypt-plugin.h | 31 + src/plugins/mail-crypt/test-fs-crypt.c | 298 + src/plugins/mail-crypt/test-mail-global-key.c | 117 + src/plugins/mail-crypt/test-mail-key.c | 431 + src/plugins/mail-log/Makefile.am | 26 + src/plugins/mail-log/Makefile.in | 838 + src/plugins/mail-log/mail-log-plugin.c | 634 + src/plugins/mail-log/mail-log-plugin.h | 9 + src/plugins/mail-lua/Makefile.am | 38 + src/plugins/mail-lua/Makefile.in | 895 + src/plugins/mail-lua/mail-lua-plugin.c | 397 + src/plugins/mail-lua/mail-lua-plugin.h | 14 + src/plugins/mail-lua/mail-lua-settings.c | 25 + src/plugins/mail-lua/mail-lua-settings.h | 14 + src/plugins/notify-status/Makefile.am | 20 + src/plugins/notify-status/Makefile.in | 830 + .../notify-status/notify-status-plugin.c | 368 + src/plugins/notify/Makefile.am | 25 + src/plugins/notify/Makefile.in | 862 + src/plugins/notify/notify-plugin-private.h | 29 + src/plugins/notify/notify-plugin.c | 271 + src/plugins/notify/notify-plugin.h | 43 + src/plugins/notify/notify-storage.c | 269 + src/plugins/pop3-migration/Makefile.am | 43 + src/plugins/pop3-migration/Makefile.in | 884 + .../pop3-migration/pop3-migration-plugin.c | 1114 + .../pop3-migration/pop3-migration-plugin.h | 13 + .../test-pop3-migration-plugin.c | 64 + src/plugins/push-notification/Makefile.am | 87 + src/plugins/push-notification/Makefile.in | 1056 + .../push-notification-driver-dlog.c | 143 + .../push-notification-driver-lua.c | 637 + .../push-notification-driver-ox.c | 460 + .../push-notification-drivers.c | 157 + .../push-notification-drivers.h | 116 + .../push-notification-event-flagsclear.c | 171 + .../push-notification-event-flagsclear.h | 22 + .../push-notification-event-flagsset.c | 168 + .../push-notification-event-flagsset.h | 22 + .../push-notification-event-mailboxcreate.c | 58 + .../push-notification-event-mailboxcreate.h | 12 + .../push-notification-event-mailboxdelete.c | 47 + .../push-notification-event-mailboxdelete.h | 12 + .../push-notification-event-mailboxrename.c | 51 + .../push-notification-event-mailboxrename.h | 11 + ...push-notification-event-mailboxsubscribe.c | 49 + ...push-notification-event-mailboxsubscribe.h | 12 + ...sh-notification-event-mailboxunsubscribe.c | 49 + ...sh-notification-event-mailboxunsubscribe.h | 12 + .../push-notification-event-message-common.c | 117 + .../push-notification-event-message-common.h | 40 + .../push-notification-event-messageappend.c | 100 + .../push-notification-event-messageappend.h | 30 + .../push-notification-event-messageexpunge.c | 54 + .../push-notification-event-messageexpunge.h | 12 + .../push-notification-event-messagenew.c | 98 + .../push-notification-event-messagenew.h | 36 + .../push-notification-event-messageread.c | 59 + .../push-notification-event-messageread.h | 11 + .../push-notification-event-messagetrash.c | 59 + .../push-notification-event-messagetrash.h | 12 + .../push-notification-events-rfc5423.c | 59 + .../push-notification-events-rfc5423.h | 10 + .../push-notification-events.c | 102 + .../push-notification-events.h | 126 + .../push-notification-plugin.c | 384 + .../push-notification-plugin.h | 18 + .../push-notification-settings.c | 124 + .../push-notification-settings.h | 37 + .../push-notification-triggers.c | 215 + .../push-notification-triggers.h | 64 + .../push-notification-txn-mbox.c | 90 + .../push-notification-txn-mbox.h | 29 + .../push-notification-txn-msg.c | 139 + .../push-notification-txn-msg.h | 39 + src/plugins/quota-clone/Makefile.am | 23 + src/plugins/quota-clone/Makefile.in | 841 + src/plugins/quota-clone/quota-clone-plugin.c | 323 + src/plugins/quota-clone/quota-clone-plugin.h | 7 + .../quota-clone/quota-clone-settings.c | 31 + .../quota-clone/quota-clone-settings.h | 10 + src/plugins/quota/Makefile.am | 138 + src/plugins/quota/Makefile.in | 1186 + src/plugins/quota/doveadm-quota.c | 170 + src/plugins/quota/quota-count.c | 392 + src/plugins/quota/quota-fs.c | 940 + src/plugins/quota/quota-fs.h | 51 + src/plugins/quota/quota-imapc.c | 494 + src/plugins/quota/quota-maildir.c | 870 + src/plugins/quota/quota-plugin.c | 31 + src/plugins/quota/quota-plugin.h | 36 + src/plugins/quota/quota-private.h | 212 + src/plugins/quota/quota-settings.c | 159 + src/plugins/quota/quota-settings.h | 87 + src/plugins/quota/quota-status-settings.c | 34 + src/plugins/quota/quota-status-settings.h | 12 + src/plugins/quota/quota-status.c | 400 + src/plugins/quota/quota-storage.c | 752 + src/plugins/quota/quota-util.c | 245 + src/plugins/quota/quota.c | 1330 + src/plugins/quota/quota.h | 143 + src/plugins/quota/rquota.x | 139 + src/plugins/quota/test-quota-util.c | 95 + src/plugins/trash/Makefile.am | 25 + src/plugins/trash/Makefile.in | 836 + src/plugins/trash/trash-plugin.c | 678 + src/plugins/trash/trash-plugin.h | 9 + src/plugins/virtual/Makefile.am | 34 + src/plugins/virtual/Makefile.in | 883 + src/plugins/virtual/virtual-config.c | 564 + src/plugins/virtual/virtual-list.c | 67 + src/plugins/virtual/virtual-mail.c | 600 + src/plugins/virtual/virtual-plugin.c | 30 + src/plugins/virtual/virtual-plugin.h | 9 + src/plugins/virtual/virtual-save.c | 153 + src/plugins/virtual/virtual-search.c | 207 + src/plugins/virtual/virtual-settings.c | 37 + src/plugins/virtual/virtual-settings.h | 12 + src/plugins/virtual/virtual-storage.c | 987 + src/plugins/virtual/virtual-storage.h | 250 + src/plugins/virtual/virtual-sync.c | 2002 + src/plugins/virtual/virtual-transaction.c | 93 + src/plugins/virtual/virtual-transaction.h | 24 + src/plugins/welcome/Makefile.am | 17 + src/plugins/welcome/Makefile.in | 827 + src/plugins/welcome/welcome-plugin.c | 172 + src/pop3-login/Makefile.am | 37 + src/pop3-login/Makefile.in | 843 + src/pop3-login/client-authenticate.c | 277 + src/pop3-login/client-authenticate.h | 15 + src/pop3-login/client.c | 402 + src/pop3-login/client.h | 40 + src/pop3-login/pop3-login-settings.c | 68 + src/pop3-login/pop3-proxy.c | 396 + src/pop3-login/pop3-proxy.h | 12 + src/pop3/Makefile.am | 41 + src/pop3/Makefile.in | 899 + src/pop3/main.c | 477 + src/pop3/pop3-client.c | 946 + src/pop3/pop3-client.h | 148 + src/pop3/pop3-commands.c | 969 + src/pop3/pop3-commands.h | 28 + src/pop3/pop3-common.h | 27 + src/pop3/pop3-settings.c | 197 + src/pop3/pop3-settings.h | 42 + src/stats/Makefile.am | 106 + src/stats/Makefile.in | 1047 + src/stats/client-http.c | 235 + src/stats/client-http.h | 28 + src/stats/client-reader.c | 296 + src/stats/client-reader.h | 11 + src/stats/client-writer.c | 374 + src/stats/client-writer.h | 13 + src/stats/event-exporter-fmt-json.c | 240 + src/stats/event-exporter-fmt-none.c | 12 + src/stats/event-exporter-fmt-tab-text.c | 215 + src/stats/event-exporter-fmt.c | 47 + src/stats/event-exporter-transport-drop.c | 16 + src/stats/event-exporter-transport-file.c | 234 + .../event-exporter-transport-http-post.c | 133 + src/stats/event-exporter-transport-log.c | 33 + src/stats/event-exporter.c | 67 + src/stats/event-exporter.h | 54 + src/stats/main.c | 104 + src/stats/stats-common.h | 10 + src/stats/stats-event-category.c | 32 + src/stats/stats-event-category.h | 12 + src/stats/stats-metrics.c | 1007 + src/stats/stats-metrics.h | 131 + src/stats/stats-service-openmetrics.c | 826 + src/stats/stats-service-private.h | 8 + src/stats/stats-service.c | 15 + src/stats/stats-service.h | 7 + src/stats/stats-settings.c | 616 + src/stats/stats-settings.h | 168 + src/stats/test-client-reader.c | 242 + src/stats/test-client-writer.c | 153 + src/stats/test-stats-common.c | 113 + src/stats/test-stats-common.h | 35 + src/stats/test-stats-metrics.c | 513 + src/submission-login/Makefile.am | 36 + src/submission-login/Makefile.in | 844 + src/submission-login/client-authenticate.c | 371 + src/submission-login/client-authenticate.h | 21 + src/submission-login/client.c | 360 + src/submission-login/client.h | 39 + .../submission-login-settings.c | 169 + .../submission-login-settings.h | 26 + src/submission-login/submission-proxy.c | 778 + src/submission-login/submission-proxy.h | 12 + src/submission/Makefile.am | 57 + src/submission/Makefile.in | 930 + src/submission/main.c | 486 + src/submission/submission-backend-relay.c | 1261 + src/submission/submission-backend-relay.h | 64 + src/submission/submission-backend.c | 448 + src/submission/submission-backend.h | 171 + src/submission/submission-client.c | 579 + src/submission/submission-client.h | 161 + src/submission/submission-commands.c | 628 + src/submission/submission-commands.h | 98 + src/submission/submission-common.h | 57 + src/submission/submission-recipient.c | 47 + src/submission/submission-recipient.h | 31 + src/submission/submission-settings.c | 238 + src/submission/submission-settings.h | 63 + src/util/Makefile.am | 71 + src/util/Makefile.in | 1015 + src/util/dovecot-sysreport | 216 + src/util/gdbhelper.c | 71 + src/util/health-check-settings.c | 26 + src/util/health-check.sh | 32 + src/util/rawlog.c | 427 + src/util/script-login.c | 250 + src/util/script.c | 321 + src/util/test-fs.c | 457 + stamp.h.in | 0 update-version.sh | 68 + version | 1 + 2560 files changed, 917924 insertions(+) create mode 100644 AUTHORS create mode 100644 COPYING create mode 100644 COPYING.LGPL create mode 100644 COPYING.MIT create mode 100644 ChangeLog create mode 100644 INSTALL.md create mode 100644 Makefile.am create mode 100644 Makefile.in create mode 100644 NEWS create mode 100644 README.md create mode 100644 SECURITY.md create mode 100644 TODO create mode 100644 aclocal.m4 create mode 100755 build-aux/compile create mode 100755 build-aux/config.guess create mode 100755 build-aux/config.rpath create mode 100755 build-aux/config.sub create mode 100755 build-aux/depcomp create mode 100755 build-aux/git-abi-version-gen create mode 100755 build-aux/git-version-gen create mode 100755 build-aux/install-sh create mode 100755 build-aux/ltmain.sh create mode 100755 build-aux/missing create mode 100644 build-aux/run-test.sh.in create mode 100755 build-aux/ylwrap create mode 100644 config.h.in create mode 100755 configure create mode 100644 configure.ac create mode 100644 doc/Makefile.am create mode 100644 doc/Makefile.in create mode 100644 doc/dovecot-initd.sh create mode 100644 doc/dovecot-openssl.cnf create mode 100644 doc/dovecot.conf.in create mode 100644 doc/index.html create mode 100644 doc/index.html.in create mode 100644 doc/man/Makefile.am create mode 100644 doc/man/Makefile.in create mode 100644 doc/man/deliver.1 create mode 100644 doc/man/doveadm-acl.1 create mode 100644 doc/man/doveadm-altmove.1 create mode 100644 doc/man/doveadm-auth.1 create mode 100644 doc/man/doveadm-backup.1 create mode 100644 doc/man/doveadm-compress-connect.1 create mode 100644 doc/man/doveadm-config.1 create mode 100644 doc/man/doveadm-copy.1 create mode 100644 doc/man/doveadm-deduplicate.1 create mode 100644 doc/man/doveadm-dict.1 create mode 100644 doc/man/doveadm-dump.1 create mode 100644 doc/man/doveadm-exec.1 create mode 100644 doc/man/doveadm-expunge.1 create mode 100644 doc/man/doveadm-fetch.1 create mode 100644 doc/man/doveadm-flags.1 create mode 100644 doc/man/doveadm-force-resync.1 create mode 100644 doc/man/doveadm-fs.1 create mode 100644 doc/man/doveadm-fts.1 create mode 100644 doc/man/doveadm-help.1 create mode 100644 doc/man/doveadm-import.1 create mode 100644 doc/man/doveadm-index.1 create mode 100644 doc/man/doveadm-indexer.1 create mode 100644 doc/man/doveadm-instance.1 create mode 100644 doc/man/doveadm-kick.1 create mode 100644 doc/man/doveadm-log.1 create mode 100644 doc/man/doveadm-mail-dict.1 create mode 100644 doc/man/doveadm-mail-fs.1 create mode 100644 doc/man/doveadm-mailbox-cryptokey.1 create mode 100644 doc/man/doveadm-mailbox.1 create mode 100644 doc/man/doveadm-move.1 create mode 100644 doc/man/doveadm-penalty.1 create mode 100644 doc/man/doveadm-process-status.1 create mode 100644 doc/man/doveadm-proxy.1 create mode 100644 doc/man/doveadm-purge.1 create mode 100644 doc/man/doveadm-pw.1 create mode 100644 doc/man/doveadm-quota.1 create mode 100644 doc/man/doveadm-rebuild.1 create mode 100644 doc/man/doveadm-reload.1 create mode 100644 doc/man/doveadm-save.1 create mode 100644 doc/man/doveadm-search-query.7 create mode 100644 doc/man/doveadm-search.1 create mode 100644 doc/man/doveadm-service-status.1 create mode 100644 doc/man/doveadm-service-stop.1 create mode 100644 doc/man/doveadm-stats.1 create mode 100644 doc/man/doveadm-stop.1 create mode 100644 doc/man/doveadm-sync.1 create mode 100644 doc/man/doveadm-user.1 create mode 100644 doc/man/doveadm-who.1 create mode 100644 doc/man/doveadm.1 create mode 100644 doc/man/doveconf.1 create mode 100644 doc/man/dovecot-lda.1 create mode 100644 doc/man/dovecot-sysreport.1 create mode 100644 doc/man/dovecot.1 create mode 100644 doc/mkcert.sh create mode 100644 doc/solr-config-7.7.0.xml create mode 100644 doc/solr-config-9.xml create mode 100644 doc/solr-schema-7.7.0.xml create mode 100644 doc/solr-schema-9.xml create mode 100644 doc/stamp-man create mode 100644 doc/thread-refs.txt create mode 100644 dovecot-config.in.in create mode 100644 dovecot-version.h create mode 100644 dovecot.service.in create mode 100644 dovecot.socket create mode 100644 m4/ac_typeof.m4 create mode 100644 m4/arc4random.m4 create mode 100644 m4/blockdev.m4 create mode 100644 m4/crypt.m4 create mode 100644 m4/crypt_xpg6.m4 create mode 100644 m4/dbqlk.m4 create mode 100644 m4/dirent_dtype.m4 create mode 100644 m4/dovecot.m4 create mode 100644 m4/dovecot_pro.m4 create mode 100644 m4/faccessat2.m4 create mode 100644 m4/fd_passing.m4 create mode 100644 m4/glibc.m4 create mode 100644 m4/gmtime_max.m4 create mode 100644 m4/gmtime_tm_gmtoff.m4 create mode 100644 m4/ioloop.m4 create mode 100644 m4/iovec.m4 create mode 100644 m4/libcap.m4 create mode 100644 m4/libtool.m4 create mode 100644 m4/linux_mremap.m4 create mode 100644 m4/ltoptions.m4 create mode 100644 m4/ltsugar.m4 create mode 100644 m4/ltversion.m4 create mode 100644 m4/lt~obsolete.m4 create mode 100644 m4/mmap_write.m4 create mode 100644 m4/mntctl.m4 create mode 100644 m4/modules.m4 create mode 100644 m4/notify.m4 create mode 100644 m4/nsl.m4 create mode 100644 m4/off_t_max.m4 create mode 100644 m4/pkg.m4 create mode 100644 m4/pr_set_dumpable.m4 create mode 100644 m4/q_quotactl.m4 create mode 100644 m4/quota.m4 create mode 100644 m4/random.m4 create mode 100644 m4/rlimit.m4 create mode 100644 m4/sched.m4 create mode 100644 m4/sendfile.m4 create mode 100644 m4/size_t_signed.m4 create mode 100644 m4/sockpeercred.m4 create mode 100644 m4/sql.m4 create mode 100644 m4/ssl.m4 create mode 100644 m4/st_tim.m4 create mode 100644 m4/test_with.m4 create mode 100644 m4/time_t.m4 create mode 100644 m4/typeof.m4 create mode 100644 m4/uoff_t_max.m4 create mode 100644 m4/vararg.m4 create mode 100644 m4/want_apparmor.m4 create mode 100644 m4/want_bsdauth.m4 create mode 100644 m4/want_bzlib.m4 create mode 100644 m4/want_cassandra.m4 create mode 100644 m4/want_cdb.m4 create mode 100644 m4/want_flatcurve.m4 create mode 100644 m4/want_gssapi.m4 create mode 100644 m4/want_icu.m4 create mode 100644 m4/want_ldap.m4 create mode 100644 m4/want_lua.m4 create mode 100644 m4/want_lz4.m4 create mode 100644 m4/want_mysql.m4 create mode 100644 m4/want_pam.m4 create mode 100644 m4/want_passwd.m4 create mode 100644 m4/want_pgsql.m4 create mode 100644 m4/want_prefetch.m4 create mode 100644 m4/want_sodium.m4 create mode 100644 m4/want_solr.m4 create mode 100644 m4/want_sqlite.m4 create mode 100644 m4/want_stemmer.m4 create mode 100644 m4/want_systemd.m4 create mode 100644 m4/want_textcat.m4 create mode 100644 m4/want_unwind.m4 create mode 100644 m4/want_zstd.m4 create mode 100644 m4/zlib.m4 create mode 100644 run-test-valgrind.supp create mode 100644 src/Makefile.am create mode 100644 src/Makefile.in create mode 100644 src/anvil/Makefile.am create mode 100644 src/anvil/Makefile.in create mode 100644 src/anvil/admin-client-pool.c create mode 100644 src/anvil/admin-client-pool.h create mode 100644 src/anvil/admin-client.c create mode 100644 src/anvil/admin-client.h create mode 100644 src/anvil/anvil-connection.c create mode 100644 src/anvil/anvil-connection.h create mode 100644 src/anvil/anvil-settings.c create mode 100644 src/anvil/common.h create mode 100644 src/anvil/connect-limit.c create mode 100644 src/anvil/connect-limit.h create mode 100644 src/anvil/main.c create mode 100644 src/anvil/penalty.c create mode 100644 src/anvil/penalty.h create mode 100644 src/anvil/test-connect-limit.c create mode 100644 src/anvil/test-penalty.c create mode 100644 src/auth/Makefile.am create mode 100644 src/auth/Makefile.in create mode 100644 src/auth/auth-cache.c create mode 100644 src/auth/auth-cache.h create mode 100644 src/auth/auth-client-connection.c create mode 100644 src/auth/auth-client-connection.h create mode 100644 src/auth/auth-common.h create mode 100644 src/auth/auth-fields.c create mode 100644 src/auth/auth-fields.h create mode 100644 src/auth/auth-master-connection.c create mode 100644 src/auth/auth-master-connection.h create mode 100644 src/auth/auth-penalty.c create mode 100644 src/auth/auth-penalty.h create mode 100644 src/auth/auth-policy.c create mode 100644 src/auth/auth-policy.h create mode 100644 src/auth/auth-request-fields.c create mode 100644 src/auth/auth-request-handler-private.h create mode 100644 src/auth/auth-request-handler.c create mode 100644 src/auth/auth-request-handler.h create mode 100644 src/auth/auth-request-var-expand.c create mode 100644 src/auth/auth-request-var-expand.h create mode 100644 src/auth/auth-request.c create mode 100644 src/auth/auth-request.h create mode 100644 src/auth/auth-settings.c create mode 100644 src/auth/auth-settings.h create mode 100644 src/auth/auth-token.c create mode 100644 src/auth/auth-token.h create mode 100644 src/auth/auth-worker-connection.c create mode 100644 src/auth/auth-worker-connection.h create mode 100644 src/auth/auth-worker-server.c create mode 100644 src/auth/auth-worker-server.h create mode 100644 src/auth/auth.c create mode 100644 src/auth/auth.h create mode 100644 src/auth/db-ldap-settings.c create mode 100644 src/auth/db-ldap-settings.h create mode 100644 src/auth/db-ldap.c create mode 100644 src/auth/db-ldap.h create mode 100644 src/auth/db-lua.c create mode 100644 src/auth/db-lua.h create mode 100644 src/auth/db-oauth2.c create mode 100644 src/auth/db-oauth2.h create mode 100644 src/auth/db-passwd-file.c create mode 100644 src/auth/db-passwd-file.h create mode 100644 src/auth/db-sql.c create mode 100644 src/auth/db-sql.h create mode 100644 src/auth/main.c create mode 100644 src/auth/mech-anonymous.c create mode 100644 src/auth/mech-apop.c create mode 100644 src/auth/mech-cram-md5.c create mode 100644 src/auth/mech-digest-md5-private.h create mode 100644 src/auth/mech-digest-md5.c create mode 100644 src/auth/mech-dovecot-token.c create mode 100644 src/auth/mech-external.c create mode 100644 src/auth/mech-gssapi.c create mode 100644 src/auth/mech-login.c create mode 100644 src/auth/mech-oauth2.c create mode 100644 src/auth/mech-otp-common.c create mode 100644 src/auth/mech-otp-common.h create mode 100644 src/auth/mech-otp.c create mode 100644 src/auth/mech-plain-common.c create mode 100644 src/auth/mech-plain-common.h create mode 100644 src/auth/mech-plain.c create mode 100644 src/auth/mech-scram.c create mode 100644 src/auth/mech-scram.h create mode 100644 src/auth/mech-winbind.c create mode 100644 src/auth/mech.c create mode 100644 src/auth/mech.h create mode 100644 src/auth/passdb-blocking.c create mode 100644 src/auth/passdb-blocking.h create mode 100644 src/auth/passdb-bsdauth.c create mode 100644 src/auth/passdb-cache.c create mode 100644 src/auth/passdb-cache.h create mode 100644 src/auth/passdb-imap.c create mode 100644 src/auth/passdb-ldap.c create mode 100644 src/auth/passdb-lua.c create mode 100644 src/auth/passdb-oauth2.c create mode 100644 src/auth/passdb-pam.c create mode 100644 src/auth/passdb-passwd-file.c create mode 100644 src/auth/passdb-passwd.c create mode 100644 src/auth/passdb-sql.c create mode 100644 src/auth/passdb-static.c create mode 100644 src/auth/passdb.c create mode 100644 src/auth/passdb.h create mode 100644 src/auth/test-auth-cache.c create mode 100644 src/auth/test-auth-client.c create mode 100644 src/auth/test-auth-master-server.c create mode 100644 src/auth/test-auth-master.c create mode 100644 src/auth/test-auth-master.h create mode 100644 src/auth/test-auth-request-fields.c create mode 100644 src/auth/test-auth-request-var-expand.c create mode 100644 src/auth/test-auth.c create mode 100644 src/auth/test-auth.h create mode 100644 src/auth/test-lua.c create mode 100644 src/auth/test-main.c create mode 100644 src/auth/test-mech.c create mode 100644 src/auth/test-mock.c create mode 100644 src/auth/test-username-filter.c create mode 100644 src/auth/userdb-blocking.c create mode 100644 src/auth/userdb-blocking.h create mode 100644 src/auth/userdb-ldap.c create mode 100644 src/auth/userdb-lua.c create mode 100644 src/auth/userdb-passwd-file.c create mode 100644 src/auth/userdb-passwd.c create mode 100644 src/auth/userdb-prefetch.c create mode 100644 src/auth/userdb-sql.c create mode 100644 src/auth/userdb-static.c create mode 100644 src/auth/userdb.c create mode 100644 src/auth/userdb.h create mode 100644 src/config/Makefile.am create mode 100644 src/config/Makefile.in create mode 100644 src/config/all-settings.c create mode 100644 src/config/all-settings.h create mode 100644 src/config/config-connection.c create mode 100644 src/config/config-connection.h create mode 100644 src/config/config-dump-full.c create mode 100644 src/config/config-dump-full.h create mode 100644 src/config/config-filter.c create mode 100644 src/config/config-filter.h create mode 100644 src/config/config-parser-private.h create mode 100644 src/config/config-parser.c create mode 100644 src/config/config-parser.h create mode 100644 src/config/config-request.c create mode 100644 src/config/config-request.h create mode 100644 src/config/config-settings.c create mode 100644 src/config/default-settings-import.h create mode 100644 src/config/doveconf.c create mode 100644 src/config/main.c create mode 100644 src/config/old-set-parser.c create mode 100644 src/config/old-set-parser.h create mode 100755 src/config/settings-get.pl create mode 100644 src/config/sysinfo-get.c create mode 100644 src/config/sysinfo-get.h create mode 100644 src/config/test-config-parser.c create mode 100644 src/dict/Makefile.am create mode 100644 src/dict/Makefile.in create mode 100644 src/dict/dict-commands.c create mode 100644 src/dict/dict-commands.h create mode 100644 src/dict/dict-connection.c create mode 100644 src/dict/dict-connection.h create mode 100644 src/dict/dict-expire.c create mode 100644 src/dict/dict-init-cache.c create mode 100644 src/dict/dict-init-cache.h create mode 100644 src/dict/dict-settings.c create mode 100644 src/dict/dict-settings.h create mode 100644 src/dict/main.c create mode 100644 src/dict/main.h create mode 100644 src/dns/Makefile.am create mode 100644 src/dns/Makefile.in create mode 100644 src/dns/dns-client-settings.c create mode 100644 src/dns/dns-client.c create mode 100644 src/doveadm/Makefile.am create mode 100644 src/doveadm/Makefile.in create mode 100644 src/doveadm/client-connection-http.c create mode 100644 src/doveadm/client-connection-private.h create mode 100644 src/doveadm/client-connection-tcp.c create mode 100644 src/doveadm/client-connection.c create mode 100644 src/doveadm/client-connection.h create mode 100644 src/doveadm/doveadm-auth-server.c create mode 100644 src/doveadm/doveadm-auth.c create mode 100644 src/doveadm/doveadm-cmd-parse.c create mode 100644 src/doveadm/doveadm-cmd-parse.h create mode 100644 src/doveadm/doveadm-cmd.c create mode 100644 src/doveadm/doveadm-cmd.h create mode 100644 src/doveadm/doveadm-compress.c create mode 100644 src/doveadm/doveadm-dict.c create mode 100644 src/doveadm/doveadm-dict.h create mode 100644 src/doveadm/doveadm-dsync.c create mode 100644 src/doveadm/doveadm-dsync.h create mode 100644 src/doveadm/doveadm-dump-dbox.c create mode 100644 src/doveadm/doveadm-dump-dcrypt-file.c create mode 100644 src/doveadm/doveadm-dump-dcrypt-key.c create mode 100644 src/doveadm/doveadm-dump-index.c create mode 100644 src/doveadm/doveadm-dump-log.c create mode 100644 src/doveadm/doveadm-dump-mailboxlog.c create mode 100644 src/doveadm/doveadm-dump-thread.c create mode 100644 src/doveadm/doveadm-dump.c create mode 100644 src/doveadm/doveadm-dump.h create mode 100644 src/doveadm/doveadm-fs.c create mode 100644 src/doveadm/doveadm-fs.h create mode 100644 src/doveadm/doveadm-indexer.c create mode 100644 src/doveadm/doveadm-instance.c create mode 100644 src/doveadm/doveadm-kick.c create mode 100644 src/doveadm/doveadm-log.c create mode 100644 src/doveadm/doveadm-mail-altmove.c create mode 100644 src/doveadm/doveadm-mail-copymove.c create mode 100644 src/doveadm/doveadm-mail-deduplicate.c create mode 100644 src/doveadm/doveadm-mail-dict.c create mode 100644 src/doveadm/doveadm-mail-expunge.c create mode 100644 src/doveadm/doveadm-mail-fetch.c create mode 100644 src/doveadm/doveadm-mail-flags.c create mode 100644 src/doveadm/doveadm-mail-fs.c create mode 100644 src/doveadm/doveadm-mail-import.c create mode 100644 src/doveadm/doveadm-mail-index.c create mode 100644 src/doveadm/doveadm-mail-iter.c create mode 100644 src/doveadm/doveadm-mail-iter.h create mode 100644 src/doveadm/doveadm-mail-mailbox-cache.c create mode 100644 src/doveadm/doveadm-mail-mailbox-metadata.c create mode 100644 src/doveadm/doveadm-mail-mailbox-status.c create mode 100644 src/doveadm/doveadm-mail-mailbox.c create mode 100644 src/doveadm/doveadm-mail-rebuild.c create mode 100644 src/doveadm/doveadm-mail-save.c create mode 100644 src/doveadm/doveadm-mail-search.c create mode 100644 src/doveadm/doveadm-mail-server.c create mode 100644 src/doveadm/doveadm-mail.c create mode 100644 src/doveadm/doveadm-mail.h create mode 100644 src/doveadm/doveadm-mailbox-list-iter.c create mode 100644 src/doveadm/doveadm-mailbox-list-iter.h create mode 100644 src/doveadm/doveadm-master.c create mode 100644 src/doveadm/doveadm-mutf7.c create mode 100644 src/doveadm/doveadm-penalty.c create mode 100644 src/doveadm/doveadm-print-flow.c create mode 100644 src/doveadm/doveadm-print-formatted.c create mode 100644 src/doveadm/doveadm-print-json.c create mode 100644 src/doveadm/doveadm-print-pager.c create mode 100644 src/doveadm/doveadm-print-private.h create mode 100644 src/doveadm/doveadm-print-server.c create mode 100644 src/doveadm/doveadm-print-tab.c create mode 100644 src/doveadm/doveadm-print-table.c create mode 100644 src/doveadm/doveadm-print.c create mode 100644 src/doveadm/doveadm-print.h create mode 100644 src/doveadm/doveadm-pw.c create mode 100644 src/doveadm/doveadm-settings.c create mode 100644 src/doveadm/doveadm-settings.h create mode 100644 src/doveadm/doveadm-sis.c create mode 100644 src/doveadm/doveadm-stats.c create mode 100644 src/doveadm/doveadm-util.c create mode 100644 src/doveadm/doveadm-util.h create mode 100644 src/doveadm/doveadm-who.c create mode 100644 src/doveadm/doveadm-who.h create mode 100644 src/doveadm/doveadm.c create mode 100644 src/doveadm/doveadm.h create mode 100644 src/doveadm/dsync/Makefile.am create mode 100644 src/doveadm/dsync/Makefile.in create mode 100644 src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c create mode 100644 src/doveadm/dsync/dsync-brain-mailbox-tree.c create mode 100644 src/doveadm/dsync/dsync-brain-mailbox.c create mode 100644 src/doveadm/dsync/dsync-brain-mails.c create mode 100644 src/doveadm/dsync/dsync-brain-private.h create mode 100644 src/doveadm/dsync/dsync-brain.c create mode 100644 src/doveadm/dsync/dsync-brain.h create mode 100644 src/doveadm/dsync/dsync-deserializer.c create mode 100644 src/doveadm/dsync/dsync-deserializer.h create mode 100644 src/doveadm/dsync/dsync-ibc-pipe.c create mode 100644 src/doveadm/dsync/dsync-ibc-private.h create mode 100644 src/doveadm/dsync/dsync-ibc-stream.c create mode 100644 src/doveadm/dsync/dsync-ibc.c create mode 100644 src/doveadm/dsync/dsync-ibc.h create mode 100644 src/doveadm/dsync/dsync-mail.c create mode 100644 src/doveadm/dsync/dsync-mail.h create mode 100644 src/doveadm/dsync/dsync-mailbox-export.c create mode 100644 src/doveadm/dsync/dsync-mailbox-export.h create mode 100644 src/doveadm/dsync/dsync-mailbox-import.c create mode 100644 src/doveadm/dsync/dsync-mailbox-import.h create mode 100644 src/doveadm/dsync/dsync-mailbox-state.c create mode 100644 src/doveadm/dsync/dsync-mailbox-state.h create mode 100644 src/doveadm/dsync/dsync-mailbox-tree-fill.c create mode 100644 src/doveadm/dsync/dsync-mailbox-tree-private.h create mode 100644 src/doveadm/dsync/dsync-mailbox-tree-sync.c create mode 100644 src/doveadm/dsync/dsync-mailbox-tree.c create mode 100644 src/doveadm/dsync/dsync-mailbox-tree.h create mode 100644 src/doveadm/dsync/dsync-mailbox.c create mode 100644 src/doveadm/dsync/dsync-mailbox.h create mode 100644 src/doveadm/dsync/dsync-serializer.c create mode 100644 src/doveadm/dsync/dsync-serializer.h create mode 100644 src/doveadm/dsync/dsync-transaction-log-scan.c create mode 100644 src/doveadm/dsync/dsync-transaction-log-scan.h create mode 100644 src/doveadm/dsync/test-dsync-mailbox-tree-sync.c create mode 100644 src/doveadm/main.c create mode 100644 src/doveadm/test-doveadm-cmd-parse.c create mode 100644 src/doveadm/test-doveadm-util.c create mode 100644 src/imap-hibernate/Makefile.am create mode 100644 src/imap-hibernate/Makefile.in create mode 100644 src/imap-hibernate/imap-client.c create mode 100644 src/imap-hibernate/imap-client.h create mode 100644 src/imap-hibernate/imap-hibernate-client.c create mode 100644 src/imap-hibernate/imap-hibernate-client.h create mode 100644 src/imap-hibernate/imap-hibernate-settings.c create mode 100644 src/imap-hibernate/imap-master-connection.c create mode 100644 src/imap-hibernate/imap-master-connection.h create mode 100644 src/imap-hibernate/main.c create mode 100644 src/imap-login/Makefile.am create mode 100644 src/imap-login/Makefile.in create mode 100644 src/imap-login/client-authenticate.c create mode 100644 src/imap-login/client-authenticate.h create mode 100644 src/imap-login/imap-login-client.c create mode 100644 src/imap-login/imap-login-client.h create mode 100644 src/imap-login/imap-login-cmd-id.c create mode 100644 src/imap-login/imap-login-commands.c create mode 100644 src/imap-login/imap-login-commands.h create mode 100644 src/imap-login/imap-login-settings.c create mode 100644 src/imap-login/imap-login-settings.h create mode 100644 src/imap-login/imap-proxy.c create mode 100644 src/imap-login/imap-proxy.h create mode 100644 src/imap-urlauth-login/Makefile.am create mode 100644 src/imap-urlauth-login/Makefile.in create mode 100644 src/imap-urlauth-login/imap-urlauth-login-settings.c create mode 100644 src/imap-urlauth-login/imap-urlauth-login.c create mode 100644 src/imap-urlauth/Makefile.am create mode 100644 src/imap-urlauth/Makefile.in create mode 100644 src/imap-urlauth/imap-urlauth-client.c create mode 100644 src/imap-urlauth/imap-urlauth-client.h create mode 100644 src/imap-urlauth/imap-urlauth-common.h create mode 100644 src/imap-urlauth/imap-urlauth-settings.c create mode 100644 src/imap-urlauth/imap-urlauth-settings.h create mode 100644 src/imap-urlauth/imap-urlauth-worker-client.c create mode 100644 src/imap-urlauth/imap-urlauth-worker-client.h create mode 100644 src/imap-urlauth/imap-urlauth-worker-common.h create mode 100644 src/imap-urlauth/imap-urlauth-worker-settings.c create mode 100644 src/imap-urlauth/imap-urlauth-worker-settings.h create mode 100644 src/imap-urlauth/imap-urlauth-worker.c create mode 100644 src/imap-urlauth/imap-urlauth.c create mode 100644 src/imap/Makefile.am create mode 100644 src/imap/Makefile.in create mode 100644 src/imap/cmd-append.c create mode 100644 src/imap/cmd-cancelupdate.c create mode 100644 src/imap/cmd-capability.c create mode 100644 src/imap/cmd-check.c create mode 100644 src/imap/cmd-close.c create mode 100644 src/imap/cmd-compress.c create mode 100644 src/imap/cmd-copy.c create mode 100644 src/imap/cmd-create.c create mode 100644 src/imap/cmd-delete.c create mode 100644 src/imap/cmd-enable.c create mode 100644 src/imap/cmd-examine.c create mode 100644 src/imap/cmd-expunge.c create mode 100644 src/imap/cmd-fetch.c create mode 100644 src/imap/cmd-genurlauth.c create mode 100644 src/imap/cmd-getmetadata.c create mode 100644 src/imap/cmd-id.c create mode 100644 src/imap/cmd-idle.c create mode 100644 src/imap/cmd-list.c create mode 100644 src/imap/cmd-logout.c create mode 100644 src/imap/cmd-lsub.c create mode 100644 src/imap/cmd-namespace.c create mode 100644 src/imap/cmd-noop.c create mode 100644 src/imap/cmd-notify.c create mode 100644 src/imap/cmd-rename.c create mode 100644 src/imap/cmd-resetkey.c create mode 100644 src/imap/cmd-search.c create mode 100644 src/imap/cmd-select.c create mode 100644 src/imap/cmd-setmetadata.c create mode 100644 src/imap/cmd-sort.c create mode 100644 src/imap/cmd-status.c create mode 100644 src/imap/cmd-store.c create mode 100644 src/imap/cmd-subscribe.c create mode 100644 src/imap/cmd-thread.c create mode 100644 src/imap/cmd-unselect.c create mode 100644 src/imap/cmd-unsubscribe.c create mode 100644 src/imap/cmd-urlfetch.c create mode 100644 src/imap/imap-client-hibernate.c create mode 100644 src/imap/imap-client.c create mode 100644 src/imap/imap-client.h create mode 100644 src/imap/imap-commands-util.c create mode 100644 src/imap/imap-commands-util.h create mode 100644 src/imap/imap-commands.c create mode 100644 src/imap/imap-commands.h create mode 100644 src/imap/imap-common.h create mode 100644 src/imap/imap-expunge.c create mode 100644 src/imap/imap-expunge.h create mode 100644 src/imap/imap-feature.c create mode 100644 src/imap/imap-feature.h create mode 100644 src/imap/imap-fetch-body.c create mode 100644 src/imap/imap-fetch.c create mode 100644 src/imap/imap-fetch.h create mode 100644 src/imap/imap-list.c create mode 100644 src/imap/imap-list.h create mode 100644 src/imap/imap-master-client.c create mode 100644 src/imap/imap-master-client.h create mode 100644 src/imap/imap-notify.c create mode 100644 src/imap/imap-notify.h create mode 100644 src/imap/imap-search-args.c create mode 100644 src/imap/imap-search-args.h create mode 100644 src/imap/imap-search.c create mode 100644 src/imap/imap-search.h create mode 100644 src/imap/imap-settings.c create mode 100644 src/imap/imap-settings.h create mode 100644 src/imap/imap-state.c create mode 100644 src/imap/imap-state.h create mode 100644 src/imap/imap-status.c create mode 100644 src/imap/imap-status.h create mode 100644 src/imap/imap-storage-callbacks.c create mode 100644 src/imap/imap-storage-callbacks.h create mode 100644 src/imap/imap-sync-private.h create mode 100644 src/imap/imap-sync.c create mode 100644 src/imap/imap-sync.h create mode 100644 src/imap/main.c create mode 100644 src/imap/test-imap-client-hibernate.c create mode 100644 src/imap/test-imap-storage-callbacks.c create mode 100644 src/indexer/Makefile.am create mode 100644 src/indexer/Makefile.in create mode 100644 src/indexer/indexer-client.c create mode 100644 src/indexer/indexer-client.h create mode 100644 src/indexer/indexer-queue.c create mode 100644 src/indexer/indexer-queue.h create mode 100644 src/indexer/indexer-settings.c create mode 100644 src/indexer/indexer-worker-settings.c create mode 100644 src/indexer/indexer-worker.c create mode 100644 src/indexer/indexer.c create mode 100644 src/indexer/indexer.h create mode 100644 src/indexer/master-connection.c create mode 100644 src/indexer/master-connection.h create mode 100644 src/indexer/test-indexer-queue.c create mode 100644 src/indexer/worker-connection.c create mode 100644 src/indexer/worker-connection.h create mode 100644 src/lda/Makefile.am create mode 100644 src/lda/Makefile.in create mode 100644 src/lda/main.c create mode 100644 src/lib-auth-client/Makefile.am create mode 100644 src/lib-auth-client/Makefile.in create mode 100644 src/lib-auth-client/auth-client-connection.c create mode 100644 src/lib-auth-client/auth-client-interface.h create mode 100644 src/lib-auth-client/auth-client-private.h create mode 100644 src/lib-auth-client/auth-client-request.c create mode 100644 src/lib-auth-client/auth-client.c create mode 100644 src/lib-auth-client/auth-client.h create mode 100644 src/lib-auth-client/auth-master.c create mode 100644 src/lib-auth-client/auth-master.h create mode 100644 src/lib-auth-client/auth-proxy.c create mode 100644 src/lib-auth-client/auth-proxy.h create mode 100644 src/lib-auth-client/test-auth-client.c create mode 100644 src/lib-auth-client/test-auth-master.c create mode 100644 src/lib-auth/Makefile.am create mode 100644 src/lib-auth/Makefile.in create mode 100644 src/lib-auth/auth-scram-client.c create mode 100644 src/lib-auth/auth-scram-client.h create mode 100644 src/lib-auth/auth-scram-server.c create mode 100644 src/lib-auth/auth-scram-server.h create mode 100644 src/lib-auth/auth-scram.c create mode 100644 src/lib-auth/auth-scram.h create mode 100644 src/lib-auth/crypt-blowfish.c create mode 100644 src/lib-auth/crypt-blowfish.h create mode 100644 src/lib-auth/mycrypt.c create mode 100644 src/lib-auth/mycrypt.h create mode 100644 src/lib-auth/password-scheme-crypt.c create mode 100644 src/lib-auth/password-scheme-md5crypt.c create mode 100644 src/lib-auth/password-scheme-otp.c create mode 100644 src/lib-auth/password-scheme-pbkdf2.c create mode 100644 src/lib-auth/password-scheme-private.h create mode 100644 src/lib-auth/password-scheme-scram.c create mode 100644 src/lib-auth/password-scheme-sodium.c create mode 100644 src/lib-auth/password-scheme.c create mode 100644 src/lib-auth/password-scheme.h create mode 100644 src/lib-auth/test-auth-scram.c create mode 100644 src/lib-auth/test-password-scheme.c create mode 100644 src/lib-charset/Makefile.am create mode 100644 src/lib-charset/Makefile.in create mode 100644 src/lib-charset/charset-iconv.c create mode 100644 src/lib-charset/charset-utf8-only.c create mode 100644 src/lib-charset/charset-utf8-private.h create mode 100644 src/lib-charset/charset-utf8.c create mode 100644 src/lib-charset/charset-utf8.h create mode 100644 src/lib-charset/test-charset.c create mode 100644 src/lib-compression/Makefile.am create mode 100644 src/lib-compression/Makefile.in create mode 100644 src/lib-compression/bench-compression.c create mode 100644 src/lib-compression/compression.c create mode 100644 src/lib-compression/compression.h create mode 100644 src/lib-compression/iostream-lz4.h create mode 100644 src/lib-compression/iostream-zstd-private.h create mode 100644 src/lib-compression/istream-bzlib.c create mode 100644 src/lib-compression/istream-decompress.c create mode 100644 src/lib-compression/istream-lz4.c create mode 100644 src/lib-compression/istream-zlib.c create mode 100644 src/lib-compression/istream-zlib.h create mode 100644 src/lib-compression/istream-zstd.c create mode 100644 src/lib-compression/ostream-bzlib.c create mode 100644 src/lib-compression/ostream-lz4.c create mode 100644 src/lib-compression/ostream-zlib.c create mode 100644 src/lib-compression/ostream-zlib.h create mode 100644 src/lib-compression/ostream-zstd.c create mode 100644 src/lib-compression/test-compression.c create mode 100644 src/lib-dcrypt/Makefile.am create mode 100644 src/lib-dcrypt/Makefile.in create mode 100644 src/lib-dcrypt/dcrypt-iostream.h create mode 100644 src/lib-dcrypt/dcrypt-openssl1.c create mode 100644 src/lib-dcrypt/dcrypt-openssl3.c create mode 100644 src/lib-dcrypt/dcrypt-private.h create mode 100644 src/lib-dcrypt/dcrypt.c create mode 100644 src/lib-dcrypt/dcrypt.h create mode 100644 src/lib-dcrypt/istream-decrypt.c create mode 100644 src/lib-dcrypt/istream-decrypt.h create mode 100644 src/lib-dcrypt/ostream-encrypt.c create mode 100644 src/lib-dcrypt/ostream-encrypt.h create mode 100644 src/lib-dcrypt/sample-v1.asc create mode 100644 src/lib-dcrypt/sample-v1_short.asc create mode 100644 src/lib-dcrypt/sample-v2.asc create mode 100644 src/lib-dcrypt/test-crypto.c create mode 100644 src/lib-dcrypt/test-stream.c create mode 100644 src/lib-dict-backend/Makefile.am create mode 100644 src/lib-dict-backend/Makefile.in create mode 100644 src/lib-dict-backend/dict-cdb.c create mode 100644 src/lib-dict-backend/dict-ldap-settings.c create mode 100644 src/lib-dict-backend/dict-ldap-settings.h create mode 100644 src/lib-dict-backend/dict-ldap.c create mode 100644 src/lib-dict-backend/dict-sql-private.h create mode 100644 src/lib-dict-backend/dict-sql-settings.c create mode 100644 src/lib-dict-backend/dict-sql-settings.h create mode 100644 src/lib-dict-backend/dict-sql.c create mode 100644 src/lib-dict-backend/dict-sql.h create mode 100644 src/lib-dict-backend/test-dict-sql.c create mode 100644 src/lib-dict-extra/Makefile.am create mode 100644 src/lib-dict-extra/Makefile.in create mode 100644 src/lib-dict-extra/dict-client.c create mode 100644 src/lib-dict-extra/dict-client.h create mode 100644 src/lib-dict-extra/dict-fs.c create mode 100644 src/lib-dict-extra/dict-register.c create mode 100644 src/lib-dict-extra/test-dict-fs.c create mode 100644 src/lib-dict/Makefile.am create mode 100644 src/lib-dict/Makefile.in create mode 100644 src/lib-dict/dict-fail.c create mode 100644 src/lib-dict/dict-file.c create mode 100644 src/lib-dict/dict-iter-lua.c create mode 100644 src/lib-dict/dict-lua-private.h create mode 100644 src/lib-dict/dict-lua.c create mode 100644 src/lib-dict/dict-lua.h create mode 100644 src/lib-dict/dict-private.h create mode 100644 src/lib-dict/dict-redis.c create mode 100644 src/lib-dict/dict-transaction-memory.c create mode 100644 src/lib-dict/dict-transaction-memory.h create mode 100644 src/lib-dict/dict-txn-lua.c create mode 100644 src/lib-dict/dict.c create mode 100644 src/lib-dict/dict.h create mode 100644 src/lib-dict/test-dict.c create mode 100644 src/lib-dns-client/Makefile.am create mode 100644 src/lib-dns-client/Makefile.in create mode 100644 src/lib-dns-client/dns-client-cache.c create mode 100644 src/lib-dns-client/dns-client-cache.h create mode 100644 src/lib-dns-client/dns-lookup.c create mode 100644 src/lib-dns-client/dns-lookup.h create mode 100644 src/lib-dns-client/dns-lua.c create mode 100644 src/lib-dns-client/dns-lua.h create mode 100644 src/lib-dns-client/test-dns-lookup.c create mode 100644 src/lib-dns/Makefile.am create mode 100644 src/lib-dns/Makefile.in create mode 100644 src/lib-dns/dns-util.c create mode 100644 src/lib-dns/dns-util.h create mode 100644 src/lib-dns/test-dns-util.c create mode 100644 src/lib-doveadm/Makefile.am create mode 100644 src/lib-doveadm/Makefile.in create mode 100644 src/lib-doveadm/doveadm-client-lua.c create mode 100644 src/lib-doveadm/doveadm-client-lua.h create mode 100644 src/lib-doveadm/doveadm-client.c create mode 100644 src/lib-doveadm/doveadm-client.h create mode 100644 src/lib-doveadm/doveadm-protocol.c create mode 100644 src/lib-doveadm/doveadm-protocol.h create mode 100644 src/lib-dovecot/Makefile.am create mode 100644 src/lib-dovecot/Makefile.in create mode 100644 src/lib-fs/Makefile.am create mode 100644 src/lib-fs/Makefile.in create mode 100644 src/lib-fs/fs-api-private.h create mode 100644 src/lib-fs/fs-api.c create mode 100644 src/lib-fs/fs-api.h create mode 100644 src/lib-fs/fs-dict.c create mode 100644 src/lib-fs/fs-metawrap.c create mode 100644 src/lib-fs/fs-posix.c create mode 100644 src/lib-fs/fs-randomfail.c create mode 100644 src/lib-fs/fs-sis-common.c create mode 100644 src/lib-fs/fs-sis-common.h create mode 100644 src/lib-fs/fs-sis-queue.c create mode 100644 src/lib-fs/fs-sis.c create mode 100644 src/lib-fs/fs-test-async.c create mode 100644 src/lib-fs/fs-test.c create mode 100644 src/lib-fs/fs-test.h create mode 100644 src/lib-fs/fs-wrapper.c create mode 100644 src/lib-fs/fs-wrapper.h create mode 100644 src/lib-fs/istream-fs-file.c create mode 100644 src/lib-fs/istream-fs-file.h create mode 100644 src/lib-fs/istream-fs-stats.c create mode 100644 src/lib-fs/istream-fs-stats.h create mode 100644 src/lib-fs/istream-metawrap.c create mode 100644 src/lib-fs/istream-metawrap.h create mode 100644 src/lib-fs/ostream-cmp.c create mode 100644 src/lib-fs/ostream-cmp.h create mode 100644 src/lib-fs/ostream-metawrap.c create mode 100644 src/lib-fs/ostream-metawrap.h create mode 100644 src/lib-fs/test-fs-metawrap.c create mode 100644 src/lib-fs/test-fs-posix.c create mode 100644 src/lib-http/Makefile.am create mode 100644 src/lib-http/Makefile.in create mode 100644 src/lib-http/http-auth.c create mode 100644 src/lib-http/http-auth.h create mode 100644 src/lib-http/http-client-connection.c create mode 100644 src/lib-http/http-client-host.c create mode 100644 src/lib-http/http-client-peer.c create mode 100644 src/lib-http/http-client-private.h create mode 100644 src/lib-http/http-client-queue.c create mode 100644 src/lib-http/http-client-request.c create mode 100644 src/lib-http/http-client-settings.c create mode 100644 src/lib-http/http-client.c create mode 100644 src/lib-http/http-client.h create mode 100644 src/lib-http/http-common.h create mode 100644 src/lib-http/http-date.c create mode 100644 src/lib-http/http-date.h create mode 100644 src/lib-http/http-header-parser.c create mode 100644 src/lib-http/http-header-parser.h create mode 100644 src/lib-http/http-header.c create mode 100644 src/lib-http/http-header.h create mode 100644 src/lib-http/http-message-parser.c create mode 100644 src/lib-http/http-message-parser.h create mode 100644 src/lib-http/http-parser.c create mode 100644 src/lib-http/http-parser.h create mode 100644 src/lib-http/http-request-parser.c create mode 100644 src/lib-http/http-request-parser.h create mode 100644 src/lib-http/http-request.c create mode 100644 src/lib-http/http-request.h create mode 100644 src/lib-http/http-response-parser.c create mode 100644 src/lib-http/http-response-parser.h create mode 100644 src/lib-http/http-response.c create mode 100644 src/lib-http/http-response.h create mode 100644 src/lib-http/http-server-connection.c create mode 100644 src/lib-http/http-server-ostream.c create mode 100644 src/lib-http/http-server-private.h create mode 100644 src/lib-http/http-server-request.c create mode 100644 src/lib-http/http-server-resource.c create mode 100644 src/lib-http/http-server-response.c create mode 100644 src/lib-http/http-server-settings.c create mode 100644 src/lib-http/http-server.c create mode 100644 src/lib-http/http-server.h create mode 100644 src/lib-http/http-transfer-chunked.c create mode 100644 src/lib-http/http-transfer.h create mode 100644 src/lib-http/http-url.c create mode 100644 src/lib-http/http-url.h create mode 100644 src/lib-http/test-http-auth.c create mode 100644 src/lib-http/test-http-client-errors.c create mode 100644 src/lib-http/test-http-client-request.c create mode 100644 src/lib-http/test-http-client.c create mode 100644 src/lib-http/test-http-date.c create mode 100644 src/lib-http/test-http-header-parser.c create mode 100644 src/lib-http/test-http-payload.c create mode 100644 src/lib-http/test-http-request-parser.c create mode 100644 src/lib-http/test-http-response-parser.c create mode 100644 src/lib-http/test-http-server-errors.c create mode 100644 src/lib-http/test-http-server.c create mode 100644 src/lib-http/test-http-transfer.c create mode 100644 src/lib-http/test-http-url.c create mode 100644 src/lib-imap-client/Makefile.am create mode 100644 src/lib-imap-client/Makefile.in create mode 100644 src/lib-imap-client/imapc-client-private.h create mode 100644 src/lib-imap-client/imapc-client.c create mode 100644 src/lib-imap-client/imapc-client.h create mode 100644 src/lib-imap-client/imapc-connection.c create mode 100644 src/lib-imap-client/imapc-connection.h create mode 100644 src/lib-imap-client/imapc-msgmap.c create mode 100644 src/lib-imap-client/imapc-msgmap.h create mode 100644 src/lib-imap-client/imapc-settings.c create mode 100644 src/lib-imap-client/imapc-settings.h create mode 100644 src/lib-imap-client/test-imapc-client.c create mode 100644 src/lib-imap-storage/Makefile.am create mode 100644 src/lib-imap-storage/Makefile.in create mode 100644 src/lib-imap-storage/imap-metadata.c create mode 100644 src/lib-imap-storage/imap-metadata.h create mode 100644 src/lib-imap-storage/imap-msgpart-url.c create mode 100644 src/lib-imap-storage/imap-msgpart-url.h create mode 100644 src/lib-imap-storage/imap-msgpart.c create mode 100644 src/lib-imap-storage/imap-msgpart.h create mode 100644 src/lib-imap-urlauth/Makefile.am create mode 100644 src/lib-imap-urlauth/Makefile.in create mode 100644 src/lib-imap-urlauth/imap-urlauth-backend.c create mode 100644 src/lib-imap-urlauth/imap-urlauth-backend.h create mode 100644 src/lib-imap-urlauth/imap-urlauth-connection.c create mode 100644 src/lib-imap-urlauth/imap-urlauth-connection.h create mode 100644 src/lib-imap-urlauth/imap-urlauth-fetch.c create mode 100644 src/lib-imap-urlauth/imap-urlauth-fetch.h create mode 100644 src/lib-imap-urlauth/imap-urlauth-private.h create mode 100644 src/lib-imap-urlauth/imap-urlauth.c create mode 100644 src/lib-imap-urlauth/imap-urlauth.h create mode 100644 src/lib-imap/Makefile.am create mode 100644 src/lib-imap/Makefile.in create mode 100644 src/lib-imap/fuzz-imap-bodystructure.c create mode 100644 src/lib-imap/fuzz-imap-utf7.c create mode 100644 src/lib-imap/imap-arg.c create mode 100644 src/lib-imap/imap-arg.h create mode 100644 src/lib-imap/imap-base-subject.c create mode 100644 src/lib-imap/imap-base-subject.h create mode 100644 src/lib-imap/imap-bodystructure.c create mode 100644 src/lib-imap/imap-bodystructure.h create mode 100644 src/lib-imap/imap-date.c create mode 100644 src/lib-imap/imap-date.h create mode 100644 src/lib-imap/imap-envelope.c create mode 100644 src/lib-imap/imap-envelope.h create mode 100644 src/lib-imap/imap-id.c create mode 100644 src/lib-imap/imap-id.h create mode 100644 src/lib-imap/imap-keepalive.c create mode 100644 src/lib-imap/imap-keepalive.h create mode 100644 src/lib-imap/imap-match.c create mode 100644 src/lib-imap/imap-match.h create mode 100644 src/lib-imap/imap-parser.c create mode 100644 src/lib-imap/imap-parser.h create mode 100644 src/lib-imap/imap-quote.c create mode 100644 src/lib-imap/imap-quote.h create mode 100644 src/lib-imap/imap-resp-code.h create mode 100644 src/lib-imap/imap-seqset.c create mode 100644 src/lib-imap/imap-seqset.h create mode 100644 src/lib-imap/imap-stats.h create mode 100644 src/lib-imap/imap-url.c create mode 100644 src/lib-imap/imap-url.h create mode 100644 src/lib-imap/imap-utf7.c create mode 100644 src/lib-imap/imap-utf7.h create mode 100644 src/lib-imap/imap-util.c create mode 100644 src/lib-imap/imap-util.h create mode 100644 src/lib-imap/test-imap-bodystructure.c create mode 100644 src/lib-imap/test-imap-date.c create mode 100644 src/lib-imap/test-imap-envelope.c create mode 100644 src/lib-imap/test-imap-match.c create mode 100644 src/lib-imap/test-imap-parser.c create mode 100644 src/lib-imap/test-imap-quote.c create mode 100644 src/lib-imap/test-imap-url.c create mode 100644 src/lib-imap/test-imap-utf7.c create mode 100644 src/lib-imap/test-imap-util.c create mode 100644 src/lib-index/Makefile.am create mode 100644 src/lib-index/Makefile.in create mode 100644 src/lib-index/mail-cache-decisions.c create mode 100644 src/lib-index/mail-cache-fields.c create mode 100644 src/lib-index/mail-cache-lookup.c create mode 100644 src/lib-index/mail-cache-private.h create mode 100644 src/lib-index/mail-cache-purge.c create mode 100644 src/lib-index/mail-cache-sync-update.c create mode 100644 src/lib-index/mail-cache-transaction.c create mode 100644 src/lib-index/mail-cache.c create mode 100644 src/lib-index/mail-cache.h create mode 100644 src/lib-index/mail-index-alloc-cache.c create mode 100644 src/lib-index/mail-index-alloc-cache.h create mode 100644 src/lib-index/mail-index-dummy-view.c create mode 100644 src/lib-index/mail-index-fsck.c create mode 100644 src/lib-index/mail-index-lock.c create mode 100644 src/lib-index/mail-index-map-hdr.c create mode 100644 src/lib-index/mail-index-map-read.c create mode 100644 src/lib-index/mail-index-map.c create mode 100644 src/lib-index/mail-index-modseq.c create mode 100644 src/lib-index/mail-index-modseq.h create mode 100644 src/lib-index/mail-index-private.h create mode 100644 src/lib-index/mail-index-strmap.c create mode 100644 src/lib-index/mail-index-strmap.h create mode 100644 src/lib-index/mail-index-sync-ext.c create mode 100644 src/lib-index/mail-index-sync-keywords.c create mode 100644 src/lib-index/mail-index-sync-private.h create mode 100644 src/lib-index/mail-index-sync-update.c create mode 100644 src/lib-index/mail-index-sync.c create mode 100644 src/lib-index/mail-index-transaction-export.c create mode 100644 src/lib-index/mail-index-transaction-finish.c create mode 100644 src/lib-index/mail-index-transaction-private.h create mode 100644 src/lib-index/mail-index-transaction-sort-appends.c create mode 100644 src/lib-index/mail-index-transaction-update.c create mode 100644 src/lib-index/mail-index-transaction-view.c create mode 100644 src/lib-index/mail-index-transaction.c create mode 100644 src/lib-index/mail-index-util.c create mode 100644 src/lib-index/mail-index-util.h create mode 100644 src/lib-index/mail-index-view-private.h create mode 100644 src/lib-index/mail-index-view-sync.c create mode 100644 src/lib-index/mail-index-view.c create mode 100644 src/lib-index/mail-index-write.c create mode 100644 src/lib-index/mail-index.c create mode 100644 src/lib-index/mail-index.h create mode 100644 src/lib-index/mail-transaction-log-append.c create mode 100644 src/lib-index/mail-transaction-log-file.c create mode 100644 src/lib-index/mail-transaction-log-modseq.c create mode 100644 src/lib-index/mail-transaction-log-private.h create mode 100644 src/lib-index/mail-transaction-log-view-private.h create mode 100644 src/lib-index/mail-transaction-log-view.c create mode 100644 src/lib-index/mail-transaction-log.c create mode 100644 src/lib-index/mail-transaction-log.h create mode 100644 src/lib-index/mailbox-log.c create mode 100644 src/lib-index/mailbox-log.h create mode 100644 src/lib-index/test-mail-cache-common.c create mode 100644 src/lib-index/test-mail-cache-fields.c create mode 100644 src/lib-index/test-mail-cache-purge.c create mode 100644 src/lib-index/test-mail-cache.c create mode 100644 src/lib-index/test-mail-cache.h create mode 100644 src/lib-index/test-mail-index-map.c create mode 100644 src/lib-index/test-mail-index-modseq.c create mode 100644 src/lib-index/test-mail-index-sync-ext.c create mode 100644 src/lib-index/test-mail-index-transaction-finish.c create mode 100644 src/lib-index/test-mail-index-transaction-update.c create mode 100644 src/lib-index/test-mail-index-write.c create mode 100644 src/lib-index/test-mail-index.c create mode 100644 src/lib-index/test-mail-index.h create mode 100644 src/lib-index/test-mail-transaction-log-append.c create mode 100644 src/lib-index/test-mail-transaction-log-file.c create mode 100644 src/lib-index/test-mail-transaction-log-view.c create mode 100644 src/lib-json/Makefile.am create mode 100644 src/lib-json/Makefile.in create mode 100644 src/lib-json/fuzz-json-istream.c create mode 100644 src/lib-json/json-format.c create mode 100644 src/lib-json/json-generator.c create mode 100644 src/lib-json/json-generator.h create mode 100644 src/lib-json/json-istream.c create mode 100644 src/lib-json/json-istream.h create mode 100644 src/lib-json/json-ostream.c create mode 100644 src/lib-json/json-ostream.h create mode 100644 src/lib-json/json-parser.c create mode 100644 src/lib-json/json-parser.h create mode 100644 src/lib-json/json-syntax.c create mode 100644 src/lib-json/json-syntax.h create mode 100644 src/lib-json/json-text.c create mode 100644 src/lib-json/json-text.h create mode 100644 src/lib-json/json-tree-io.c create mode 100644 src/lib-json/json-tree-io.h create mode 100644 src/lib-json/json-tree.c create mode 100644 src/lib-json/json-tree.h create mode 100644 src/lib-json/json-types.c create mode 100644 src/lib-json/json-types.h create mode 100644 src/lib-json/test-json-generator.c create mode 100644 src/lib-json/test-json-io.c create mode 100644 src/lib-json/test-json-istream.c create mode 100644 src/lib-json/test-json-ostream.c create mode 100644 src/lib-json/test-json-parser.c create mode 100644 src/lib-json/test-json-tree-io.c create mode 100644 src/lib-json/test-json-tree.c create mode 100644 src/lib-language/Makefile.am create mode 100644 src/lib-language/Makefile.in create mode 100644 src/lib-language/PropList.txt create mode 100644 src/lib-language/WordBreakProperty.txt create mode 100644 src/lib-language/lang-common.h create mode 100644 src/lib-language/lang-filter-contractions.c create mode 100644 src/lib-language/lang-filter-english-possessive.c create mode 100644 src/lib-language/lang-filter-lowercase.c create mode 100644 src/lib-language/lang-filter-normalizer-icu.c create mode 100644 src/lib-language/lang-filter-private.h create mode 100644 src/lib-language/lang-filter-stemmer-snowball.c create mode 100644 src/lib-language/lang-filter-stopwords.c create mode 100644 src/lib-language/lang-filter.c create mode 100644 src/lib-language/lang-filter.h create mode 100644 src/lib-language/lang-icu.c create mode 100644 src/lib-language/lang-icu.h create mode 100644 src/lib-language/lang-indexer-status.h create mode 100644 src/lib-language/lang-library.c create mode 100644 src/lib-language/lang-library.h create mode 100644 src/lib-language/lang-settings.c create mode 100644 src/lib-language/lang-settings.h create mode 100644 src/lib-language/lang-tokenizer-address.c create mode 100644 src/lib-language/lang-tokenizer-common.c create mode 100644 src/lib-language/lang-tokenizer-common.h create mode 100644 src/lib-language/lang-tokenizer-generic-private.h create mode 100644 src/lib-language/lang-tokenizer-generic.c create mode 100644 src/lib-language/lang-tokenizer-private.h create mode 100644 src/lib-language/lang-tokenizer.c create mode 100644 src/lib-language/lang-tokenizer.h create mode 100644 src/lib-language/language.c create mode 100644 src/lib-language/language.h create mode 100644 src/lib-language/stopwords/stopwords_da.txt create mode 100644 src/lib-language/stopwords/stopwords_de.txt create mode 100644 src/lib-language/stopwords/stopwords_en.txt create mode 100644 src/lib-language/stopwords/stopwords_es.txt create mode 100644 src/lib-language/stopwords/stopwords_fi.txt create mode 100644 src/lib-language/stopwords/stopwords_fr.txt create mode 100644 src/lib-language/stopwords/stopwords_it.txt create mode 100644 src/lib-language/stopwords/stopwords_malformed.txt create mode 100644 src/lib-language/stopwords/stopwords_nl.txt create mode 100644 src/lib-language/stopwords/stopwords_no.txt create mode 100644 src/lib-language/stopwords/stopwords_pt.txt create mode 100644 src/lib-language/stopwords/stopwords_ro.txt create mode 100644 src/lib-language/stopwords/stopwords_ru.txt create mode 100644 src/lib-language/stopwords/stopwords_sv.txt create mode 100644 src/lib-language/stopwords/stopwords_tr.txt create mode 100644 src/lib-language/test-lang-filter.c create mode 100644 src/lib-language/test-lang-icu.c create mode 100644 src/lib-language/test-lang-tokenizer.c create mode 100644 src/lib-language/test-language.c create mode 100644 src/lib-language/udhr_fra.txt create mode 100644 src/lib-language/word-boundary-data.c create mode 100644 src/lib-language/word-break-data.c create mode 100644 src/lib-language/word-properties.pl create mode 100644 src/lib-lda/Makefile.am create mode 100644 src/lib-lda/Makefile.in create mode 100644 src/lib-lda/lda-settings.c create mode 100644 src/lib-lda/lda-settings.h create mode 100644 src/lib-lda/mail-deliver.c create mode 100644 src/lib-lda/mail-deliver.h create mode 100644 src/lib-lda/mail-send.c create mode 100644 src/lib-lda/mail-send.h create mode 100644 src/lib-ldap/Makefile.am create mode 100644 src/lib-ldap/Makefile.in create mode 100644 src/lib-ldap/ldap-client.c create mode 100644 src/lib-ldap/ldap-client.h create mode 100644 src/lib-ldap/ldap-compare.c create mode 100644 src/lib-ldap/ldap-connection-pool.c create mode 100644 src/lib-ldap/ldap-connection-pool.h create mode 100644 src/lib-ldap/ldap-connection.c create mode 100644 src/lib-ldap/ldap-entry.c create mode 100644 src/lib-ldap/ldap-iterator.c create mode 100644 src/lib-ldap/ldap-private.h create mode 100644 src/lib-ldap/ldap-search.c create mode 100644 src/lib-ldap/ldap-settings-parse.h create mode 100644 src/lib-ldap/ldap-settings.c create mode 100644 src/lib-ldap/ldap-settings.h create mode 100644 src/lib-ldap/ldap-utils.c create mode 100644 src/lib-ldap/ldap-utils.h create mode 100644 src/lib-login/Makefile.am create mode 100644 src/lib-login/Makefile.in create mode 100644 src/lib-login/login-client.c create mode 100644 src/lib-login/login-client.h create mode 100644 src/lib-login/login-interface.h create mode 100644 src/lib-login/login-server-auth.c create mode 100644 src/lib-login/login-server-auth.h create mode 100644 src/lib-login/login-server.c create mode 100644 src/lib-login/login-server.h create mode 100644 src/lib-login/test-login-server-auth.c create mode 100644 src/lib-lua/Makefile.am create mode 100644 src/lib-lua/Makefile.in create mode 100644 src/lib-lua/dlua-compat.c create mode 100644 src/lib-lua/dlua-compat.h create mode 100644 src/lib-lua/dlua-dovecot-http.c create mode 100644 src/lib-lua/dlua-dovecot.c create mode 100644 src/lib-lua/dlua-error.c create mode 100644 src/lib-lua/dlua-pushstring.c create mode 100644 src/lib-lua/dlua-resume.c create mode 100644 src/lib-lua/dlua-script-private.h create mode 100644 src/lib-lua/dlua-script.c create mode 100644 src/lib-lua/dlua-script.h create mode 100644 src/lib-lua/dlua-table.c create mode 100644 src/lib-lua/dlua-thread.c create mode 100644 src/lib-lua/dlua-wrapper.h create mode 100644 src/lib-lua/test-dict-lua.c create mode 100644 src/lib-lua/test-dns-lua.c create mode 100644 src/lib-lua/test-lua-http-client.c create mode 100644 src/lib-lua/test-lua-http-client.lua create mode 100644 src/lib-lua/test-lua.c create mode 100644 src/lib-mail/Makefile.am create mode 100644 src/lib-mail/Makefile.in create mode 100644 src/lib-mail/fuzz-message-parser.c create mode 100644 src/lib-mail/html-entities.h create mode 100644 src/lib-mail/istream-attachment-connector.c create mode 100644 src/lib-mail/istream-attachment-connector.h create mode 100644 src/lib-mail/istream-attachment-extractor.c create mode 100644 src/lib-mail/istream-attachment-extractor.h create mode 100644 src/lib-mail/istream-binary-converter.c create mode 100644 src/lib-mail/istream-binary-converter.h create mode 100644 src/lib-mail/istream-dot.c create mode 100644 src/lib-mail/istream-dot.h create mode 100644 src/lib-mail/istream-header-filter.c create mode 100644 src/lib-mail/istream-header-filter.h create mode 100644 src/lib-mail/istream-qp-decoder.c create mode 100644 src/lib-mail/istream-qp-encoder.c create mode 100644 src/lib-mail/istream-qp.h create mode 100644 src/lib-mail/mail-html2text.c create mode 100644 src/lib-mail/mail-html2text.h create mode 100644 src/lib-mail/mail-types.h create mode 100644 src/lib-mail/mbox-from.c create mode 100644 src/lib-mail/mbox-from.h create mode 100644 src/lib-mail/message-address.c create mode 100644 src/lib-mail/message-address.h create mode 100644 src/lib-mail/message-binary-part.c create mode 100644 src/lib-mail/message-binary-part.h create mode 100644 src/lib-mail/message-date.c create mode 100644 src/lib-mail/message-date.h create mode 100644 src/lib-mail/message-decoder.c create mode 100644 src/lib-mail/message-decoder.h create mode 100644 src/lib-mail/message-header-decode.c create mode 100644 src/lib-mail/message-header-decode.h create mode 100644 src/lib-mail/message-header-encode.c create mode 100644 src/lib-mail/message-header-encode.h create mode 100644 src/lib-mail/message-header-hash.c create mode 100644 src/lib-mail/message-header-hash.h create mode 100644 src/lib-mail/message-header-parser.c create mode 100644 src/lib-mail/message-header-parser.h create mode 100644 src/lib-mail/message-id.c create mode 100644 src/lib-mail/message-id.h create mode 100644 src/lib-mail/message-parser-from-parts.c create mode 100644 src/lib-mail/message-parser-private.h create mode 100644 src/lib-mail/message-parser.c create mode 100644 src/lib-mail/message-parser.h create mode 100644 src/lib-mail/message-part-data.c create mode 100644 src/lib-mail/message-part-data.h create mode 100644 src/lib-mail/message-part-serialize.c create mode 100644 src/lib-mail/message-part-serialize.h create mode 100644 src/lib-mail/message-part.c create mode 100644 src/lib-mail/message-part.h create mode 100644 src/lib-mail/message-search.c create mode 100644 src/lib-mail/message-search.h create mode 100644 src/lib-mail/message-size.c create mode 100644 src/lib-mail/message-size.h create mode 100644 src/lib-mail/message-snippet.c create mode 100644 src/lib-mail/message-snippet.h create mode 100644 src/lib-mail/ostream-dot.c create mode 100644 src/lib-mail/ostream-dot.h create mode 100644 src/lib-mail/qp-decoder.c create mode 100644 src/lib-mail/qp-decoder.h create mode 100644 src/lib-mail/qp-encoder.c create mode 100644 src/lib-mail/qp-encoder.h create mode 100644 src/lib-mail/quoted-printable.c create mode 100644 src/lib-mail/quoted-printable.h create mode 100644 src/lib-mail/rfc2231-parser.c create mode 100644 src/lib-mail/rfc2231-parser.h create mode 100644 src/lib-mail/rfc822-parser.c create mode 100644 src/lib-mail/rfc822-parser.h create mode 100644 src/lib-mail/test-istream-attachment.c create mode 100644 src/lib-mail/test-istream-binary-converter.c create mode 100644 src/lib-mail/test-istream-dot.c create mode 100644 src/lib-mail/test-istream-header-filter.c create mode 100644 src/lib-mail/test-istream-qp-decoder.c create mode 100644 src/lib-mail/test-istream-qp-encoder.c create mode 100644 src/lib-mail/test-mail-html2text.c create mode 100644 src/lib-mail/test-mbox-from.c create mode 100644 src/lib-mail/test-message-address.c create mode 100644 src/lib-mail/test-message-date.c create mode 100644 src/lib-mail/test-message-decoder.c create mode 100644 src/lib-mail/test-message-header-decode.c create mode 100644 src/lib-mail/test-message-header-encode.c create mode 100644 src/lib-mail/test-message-header-hash.c create mode 100644 src/lib-mail/test-message-header-parser.c create mode 100644 src/lib-mail/test-message-id.c create mode 100644 src/lib-mail/test-message-parser.c create mode 100644 src/lib-mail/test-message-part-data.c create mode 100644 src/lib-mail/test-message-part-serialize.c create mode 100644 src/lib-mail/test-message-part.c create mode 100644 src/lib-mail/test-message-search.c create mode 100644 src/lib-mail/test-message-size.c create mode 100644 src/lib-mail/test-message-snippet.c create mode 100644 src/lib-mail/test-ostream-dot.c create mode 100644 src/lib-mail/test-qp-decoder.c create mode 100644 src/lib-mail/test-qp-encoder.c create mode 100644 src/lib-mail/test-quoted-printable.c create mode 100644 src/lib-mail/test-rfc2231-parser.c create mode 100644 src/lib-mail/test-rfc822-parser.c create mode 100644 src/lib-master/Makefile.am create mode 100644 src/lib-master/Makefile.in create mode 100644 src/lib-master/anvil-client.c create mode 100644 src/lib-master/anvil-client.h create mode 100644 src/lib-master/log-error-buffer.c create mode 100644 src/lib-master/log-error-buffer.h create mode 100644 src/lib-master/master-admin-client.c create mode 100644 src/lib-master/master-admin-client.h create mode 100644 src/lib-master/master-instance.c create mode 100644 src/lib-master/master-instance.h create mode 100644 src/lib-master/master-interface.h create mode 100644 src/lib-master/master-service-haproxy.c create mode 100644 src/lib-master/master-service-private.h create mode 100644 src/lib-master/master-service-settings.c create mode 100644 src/lib-master/master-service-settings.h create mode 100644 src/lib-master/master-service-ssl.c create mode 100644 src/lib-master/master-service-ssl.h create mode 100644 src/lib-master/master-service.c create mode 100644 src/lib-master/master-service.h create mode 100644 src/lib-master/service-settings.h create mode 100644 src/lib-master/stats-client.c create mode 100644 src/lib-master/stats-client.h create mode 100644 src/lib-master/syslog-util.c create mode 100644 src/lib-master/syslog-util.h create mode 100644 src/lib-master/test-event-stats.c create mode 100644 src/lib-master/test-master-service-settings.c create mode 100644 src/lib-master/test-master-service.c create mode 100644 src/lib-oauth2/Makefile.am create mode 100644 src/lib-oauth2/Makefile.in create mode 100644 src/lib-oauth2/oauth2-jwt.c create mode 100644 src/lib-oauth2/oauth2-key-cache.c create mode 100644 src/lib-oauth2/oauth2-private.h create mode 100644 src/lib-oauth2/oauth2-request.c create mode 100644 src/lib-oauth2/oauth2.c create mode 100644 src/lib-oauth2/oauth2.h create mode 100644 src/lib-oauth2/test-oauth2-json.c create mode 100644 src/lib-oauth2/test-oauth2-jwt.c create mode 100644 src/lib-otp/Makefile.am create mode 100644 src/lib-otp/Makefile.in create mode 100644 src/lib-otp/otp-dictionary.c create mode 100644 src/lib-otp/otp-dictionary.h create mode 100644 src/lib-otp/otp-hash.c create mode 100644 src/lib-otp/otp-hash.h create mode 100644 src/lib-otp/otp-parity.c create mode 100644 src/lib-otp/otp-parity.h create mode 100644 src/lib-otp/otp-parse.c create mode 100644 src/lib-otp/otp-parse.h create mode 100644 src/lib-otp/otp.h create mode 100644 src/lib-pop3/Makefile.am create mode 100644 src/lib-pop3/Makefile.in create mode 100644 src/lib-pop3/pop3-capability.h create mode 100644 src/lib-pop3/pop3-protocol.h create mode 100644 src/lib-program-client/Makefile.am create mode 100644 src/lib-program-client/Makefile.in create mode 100644 src/lib-program-client/program-client-local.c create mode 100644 src/lib-program-client/program-client-private.h create mode 100644 src/lib-program-client/program-client-remote.c create mode 100644 src/lib-program-client/program-client.c create mode 100644 src/lib-program-client/program-client.h create mode 100644 src/lib-program-client/test-program-client-local.c create mode 100644 src/lib-program-client/test-program-client-net.c create mode 100644 src/lib-program-client/test-program-client-unix.c create mode 100644 src/lib-sasl/Makefile.am create mode 100644 src/lib-sasl/Makefile.in create mode 100644 src/lib-sasl/dsasl-client-private.h create mode 100644 src/lib-sasl/dsasl-client.c create mode 100644 src/lib-sasl/dsasl-client.h create mode 100644 src/lib-sasl/mech-anonymous.c create mode 100644 src/lib-sasl/mech-external.c create mode 100644 src/lib-sasl/mech-login.c create mode 100644 src/lib-sasl/mech-oauthbearer.c create mode 100644 src/lib-sasl/mech-plain.c create mode 100644 src/lib-sasl/mech-scram.c create mode 100644 src/lib-sasl/test-sasl-client.c create mode 100644 src/lib-settings/Makefile.am create mode 100644 src/lib-settings/Makefile.in create mode 100644 src/lib-settings/settings-history-core.txt create mode 100644 src/lib-settings/settings-history.c create mode 100644 src/lib-settings/settings-history.h create mode 100755 src/lib-settings/settings-history.pl create mode 100644 src/lib-settings/settings-parser.c create mode 100644 src/lib-settings/settings-parser.h create mode 100644 src/lib-settings/settings.c create mode 100644 src/lib-settings/settings.h create mode 100644 src/lib-settings/test-settings-parser.c create mode 100644 src/lib-settings/test-settings.c create mode 100644 src/lib-smtp/Makefile.am create mode 100644 src/lib-smtp/Makefile.in create mode 100644 src/lib-smtp/fuzz-smtp-server.c create mode 100644 src/lib-smtp/smtp-address.c create mode 100644 src/lib-smtp/smtp-address.h create mode 100644 src/lib-smtp/smtp-client-command.c create mode 100644 src/lib-smtp/smtp-client-command.h create mode 100644 src/lib-smtp/smtp-client-connection.c create mode 100644 src/lib-smtp/smtp-client-connection.h create mode 100644 src/lib-smtp/smtp-client-private.h create mode 100644 src/lib-smtp/smtp-client-transaction.c create mode 100644 src/lib-smtp/smtp-client-transaction.h create mode 100644 src/lib-smtp/smtp-client.c create mode 100644 src/lib-smtp/smtp-client.h create mode 100644 src/lib-smtp/smtp-command-parser.c create mode 100644 src/lib-smtp/smtp-command-parser.h create mode 100644 src/lib-smtp/smtp-command.h create mode 100644 src/lib-smtp/smtp-common.c create mode 100644 src/lib-smtp/smtp-common.h create mode 100644 src/lib-smtp/smtp-dovecot.c create mode 100644 src/lib-smtp/smtp-dovecot.h create mode 100644 src/lib-smtp/smtp-params.c create mode 100644 src/lib-smtp/smtp-params.h create mode 100644 src/lib-smtp/smtp-parser.c create mode 100644 src/lib-smtp/smtp-parser.h create mode 100644 src/lib-smtp/smtp-reply-parser.c create mode 100644 src/lib-smtp/smtp-reply-parser.h create mode 100644 src/lib-smtp/smtp-reply.c create mode 100644 src/lib-smtp/smtp-reply.h create mode 100644 src/lib-smtp/smtp-server-cmd-auth.c create mode 100644 src/lib-smtp/smtp-server-cmd-data.c create mode 100644 src/lib-smtp/smtp-server-cmd-helo.c create mode 100644 src/lib-smtp/smtp-server-cmd-mail.c create mode 100644 src/lib-smtp/smtp-server-cmd-noop.c create mode 100644 src/lib-smtp/smtp-server-cmd-quit.c create mode 100644 src/lib-smtp/smtp-server-cmd-rcpt.c create mode 100644 src/lib-smtp/smtp-server-cmd-rset.c create mode 100644 src/lib-smtp/smtp-server-cmd-starttls.c create mode 100644 src/lib-smtp/smtp-server-cmd-vrfy.c create mode 100644 src/lib-smtp/smtp-server-cmd-xclient.c create mode 100644 src/lib-smtp/smtp-server-command.c create mode 100644 src/lib-smtp/smtp-server-connection.c create mode 100644 src/lib-smtp/smtp-server-private.h create mode 100644 src/lib-smtp/smtp-server-recipient.c create mode 100644 src/lib-smtp/smtp-server-reply.c create mode 100644 src/lib-smtp/smtp-server-transaction.c create mode 100644 src/lib-smtp/smtp-server.c create mode 100644 src/lib-smtp/smtp-server.h create mode 100644 src/lib-smtp/smtp-submit-settings.c create mode 100644 src/lib-smtp/smtp-submit-settings.h create mode 100644 src/lib-smtp/smtp-submit.c create mode 100644 src/lib-smtp/smtp-submit.h create mode 100644 src/lib-smtp/smtp-syntax.c create mode 100644 src/lib-smtp/smtp-syntax.h create mode 100755 src/lib-smtp/test-bin/sendmail-exit-1.sh create mode 100755 src/lib-smtp/test-bin/sendmail-success.sh create mode 100644 src/lib-smtp/test-smtp-address.c create mode 100644 src/lib-smtp/test-smtp-client-errors.c create mode 100644 src/lib-smtp/test-smtp-command-parser.c create mode 100644 src/lib-smtp/test-smtp-params.c create mode 100644 src/lib-smtp/test-smtp-payload.c create mode 100644 src/lib-smtp/test-smtp-reply.c create mode 100644 src/lib-smtp/test-smtp-server-errors.c create mode 100644 src/lib-smtp/test-smtp-submit.c create mode 100644 src/lib-smtp/test-smtp-syntax.c create mode 100644 src/lib-sql/Makefile.am create mode 100644 src/lib-sql/Makefile.in create mode 100644 src/lib-sql/driver-cassandra.c create mode 100644 src/lib-sql/driver-mysql.c create mode 100644 src/lib-sql/driver-pgsql.c create mode 100644 src/lib-sql/driver-sqlite.c create mode 100644 src/lib-sql/driver-sqlpool.c create mode 100644 src/lib-sql/driver-test.c create mode 100644 src/lib-sql/driver-test.h create mode 100644 src/lib-sql/sql-api-private.h create mode 100644 src/lib-sql/sql-api.c create mode 100644 src/lib-sql/sql-api.h create mode 100644 src/lib-sql/test-sql-sqlite.c create mode 100644 src/lib-sql/test-sql.c create mode 100644 src/lib-ssl-iostream/Makefile.am create mode 100644 src/lib-ssl-iostream/Makefile.in create mode 100644 src/lib-ssl-iostream/dovecot-openssl-common.c create mode 100644 src/lib-ssl-iostream/dovecot-openssl-common.h create mode 100644 src/lib-ssl-iostream/iostream-openssl-common.c create mode 100644 src/lib-ssl-iostream/iostream-openssl-context.c create mode 100644 src/lib-ssl-iostream/iostream-openssl.c create mode 100644 src/lib-ssl-iostream/iostream-openssl.h create mode 100644 src/lib-ssl-iostream/iostream-ssl-context-cache.c create mode 100644 src/lib-ssl-iostream/iostream-ssl-private.h create mode 100644 src/lib-ssl-iostream/iostream-ssl-test.c create mode 100644 src/lib-ssl-iostream/iostream-ssl-test.h create mode 100644 src/lib-ssl-iostream/iostream-ssl.c create mode 100644 src/lib-ssl-iostream/iostream-ssl.h create mode 100644 src/lib-ssl-iostream/istream-openssl.c create mode 100644 src/lib-ssl-iostream/ostream-openssl.c create mode 100644 src/lib-ssl-iostream/ssl-settings.c create mode 100644 src/lib-ssl-iostream/ssl-settings.h create mode 100644 src/lib-ssl-iostream/test-iostream-ssl.c create mode 100644 src/lib-storage/Makefile.am create mode 100644 src/lib-storage/Makefile.in create mode 100644 src/lib-storage/fail-mail-storage.c create mode 100644 src/lib-storage/fail-mail-storage.h create mode 100644 src/lib-storage/fail-mail.c create mode 100644 src/lib-storage/fail-mailbox.c create mode 100644 src/lib-storage/index/Makefile.am create mode 100644 src/lib-storage/index/Makefile.in create mode 100644 src/lib-storage/index/dbox-common/Makefile.am create mode 100644 src/lib-storage/index/dbox-common/Makefile.in create mode 100644 src/lib-storage/index/dbox-common/dbox-attachment.c create mode 100644 src/lib-storage/index/dbox-common/dbox-attachment.h create mode 100644 src/lib-storage/index/dbox-common/dbox-file-fix.c create mode 100644 src/lib-storage/index/dbox-common/dbox-file.c create mode 100644 src/lib-storage/index/dbox-common/dbox-file.h create mode 100644 src/lib-storage/index/dbox-common/dbox-mail.c create mode 100644 src/lib-storage/index/dbox-common/dbox-mail.h create mode 100644 src/lib-storage/index/dbox-common/dbox-save.c create mode 100644 src/lib-storage/index/dbox-common/dbox-save.h create mode 100644 src/lib-storage/index/dbox-common/dbox-storage.c create mode 100644 src/lib-storage/index/dbox-common/dbox-storage.h create mode 100644 src/lib-storage/index/dbox-multi/Makefile.am create mode 100644 src/lib-storage/index/dbox-multi/Makefile.in create mode 100644 src/lib-storage/index/dbox-multi/mdbox-deleted-storage.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-file.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-file.h create mode 100644 src/lib-storage/index/dbox-multi/mdbox-mail.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-map-private.h create mode 100644 src/lib-storage/index/dbox-multi/mdbox-map.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-map.h create mode 100644 src/lib-storage/index/dbox-multi/mdbox-purge.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-save.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-settings.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-settings.h create mode 100644 src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.h create mode 100644 src/lib-storage/index/dbox-multi/mdbox-storage.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-storage.h create mode 100644 src/lib-storage/index/dbox-multi/mdbox-sync.c create mode 100644 src/lib-storage/index/dbox-multi/mdbox-sync.h create mode 100644 src/lib-storage/index/dbox-single/Makefile.am create mode 100644 src/lib-storage/index/dbox-single/Makefile.in create mode 100644 src/lib-storage/index/dbox-single/sdbox-copy.c create mode 100644 src/lib-storage/index/dbox-single/sdbox-file.c create mode 100644 src/lib-storage/index/dbox-single/sdbox-file.h create mode 100644 src/lib-storage/index/dbox-single/sdbox-mail.c create mode 100644 src/lib-storage/index/dbox-single/sdbox-save.c create mode 100644 src/lib-storage/index/dbox-single/sdbox-settings.c create mode 100644 src/lib-storage/index/dbox-single/sdbox-settings.h create mode 100644 src/lib-storage/index/dbox-single/sdbox-storage.c create mode 100644 src/lib-storage/index/dbox-single/sdbox-storage.h create mode 100644 src/lib-storage/index/dbox-single/sdbox-sync-rebuild.c create mode 100644 src/lib-storage/index/dbox-single/sdbox-sync.c create mode 100644 src/lib-storage/index/dbox-single/sdbox-sync.h create mode 100644 src/lib-storage/index/imapc/Makefile.am create mode 100644 src/lib-storage/index/imapc/Makefile.in create mode 100644 src/lib-storage/index/imapc/imapc-attribute.c create mode 100644 src/lib-storage/index/imapc/imapc-attribute.h create mode 100644 src/lib-storage/index/imapc/imapc-list.c create mode 100644 src/lib-storage/index/imapc/imapc-list.h create mode 100644 src/lib-storage/index/imapc/imapc-mail-fetch.c create mode 100644 src/lib-storage/index/imapc/imapc-mail.c create mode 100644 src/lib-storage/index/imapc/imapc-mail.h create mode 100644 src/lib-storage/index/imapc/imapc-mailbox.c create mode 100644 src/lib-storage/index/imapc/imapc-save.c create mode 100644 src/lib-storage/index/imapc/imapc-search.c create mode 100644 src/lib-storage/index/imapc/imapc-search.h create mode 100644 src/lib-storage/index/imapc/imapc-storage.c create mode 100644 src/lib-storage/index/imapc/imapc-storage.h create mode 100644 src/lib-storage/index/imapc/imapc-sync.c create mode 100644 src/lib-storage/index/imapc/imapc-sync.h create mode 100644 src/lib-storage/index/index-attachment.c create mode 100644 src/lib-storage/index/index-attachment.h create mode 100644 src/lib-storage/index/index-attribute.c create mode 100644 src/lib-storage/index/index-mail-binary.c create mode 100644 src/lib-storage/index/index-mail-headers.c create mode 100644 src/lib-storage/index/index-mail.c create mode 100644 src/lib-storage/index/index-mail.h create mode 100644 src/lib-storage/index/index-mailbox-size.c create mode 100644 src/lib-storage/index/index-mailbox-size.h create mode 100644 src/lib-storage/index/index-pop3-uidl.c create mode 100644 src/lib-storage/index/index-pop3-uidl.h create mode 100644 src/lib-storage/index/index-rebuild.c create mode 100644 src/lib-storage/index/index-rebuild.h create mode 100644 src/lib-storage/index/index-search-mime.c create mode 100644 src/lib-storage/index/index-search-private.h create mode 100644 src/lib-storage/index/index-search-result.c create mode 100644 src/lib-storage/index/index-search-result.h create mode 100644 src/lib-storage/index/index-search.c create mode 100644 src/lib-storage/index/index-sort-private.h create mode 100644 src/lib-storage/index/index-sort-string.c create mode 100644 src/lib-storage/index/index-sort.c create mode 100644 src/lib-storage/index/index-sort.h create mode 100644 src/lib-storage/index/index-status.c create mode 100644 src/lib-storage/index/index-storage.c create mode 100644 src/lib-storage/index/index-storage.h create mode 100644 src/lib-storage/index/index-sync-changes.c create mode 100644 src/lib-storage/index/index-sync-changes.h create mode 100644 src/lib-storage/index/index-sync-private.h create mode 100644 src/lib-storage/index/index-sync-pvt.c create mode 100644 src/lib-storage/index/index-sync-search.c create mode 100644 src/lib-storage/index/index-sync.c create mode 100644 src/lib-storage/index/index-thread-finish.c create mode 100644 src/lib-storage/index/index-thread-links.c create mode 100644 src/lib-storage/index/index-thread-private.h create mode 100644 src/lib-storage/index/index-thread.c create mode 100644 src/lib-storage/index/index-transaction.c create mode 100644 src/lib-storage/index/istream-mail.c create mode 100644 src/lib-storage/index/istream-mail.h create mode 100644 src/lib-storage/index/maildir/Makefile.am create mode 100644 src/lib-storage/index/maildir/Makefile.in create mode 100644 src/lib-storage/index/maildir/maildir-copy.c create mode 100644 src/lib-storage/index/maildir/maildir-filename-flags.c create mode 100644 src/lib-storage/index/maildir/maildir-filename-flags.h create mode 100644 src/lib-storage/index/maildir/maildir-filename.c create mode 100644 src/lib-storage/index/maildir/maildir-filename.h create mode 100644 src/lib-storage/index/maildir/maildir-keywords.c create mode 100644 src/lib-storage/index/maildir/maildir-keywords.h create mode 100644 src/lib-storage/index/maildir/maildir-mail.c create mode 100644 src/lib-storage/index/maildir/maildir-save.c create mode 100644 src/lib-storage/index/maildir/maildir-settings.c create mode 100644 src/lib-storage/index/maildir/maildir-settings.h create mode 100644 src/lib-storage/index/maildir/maildir-storage.c create mode 100644 src/lib-storage/index/maildir/maildir-storage.h create mode 100644 src/lib-storage/index/maildir/maildir-sync-index.c create mode 100644 src/lib-storage/index/maildir/maildir-sync.c create mode 100644 src/lib-storage/index/maildir/maildir-sync.h create mode 100644 src/lib-storage/index/maildir/maildir-uidlist.c create mode 100644 src/lib-storage/index/maildir/maildir-uidlist.h create mode 100644 src/lib-storage/index/maildir/maildir-util.c create mode 100644 src/lib-storage/index/mbox/Makefile.am create mode 100644 src/lib-storage/index/mbox/Makefile.in create mode 100644 src/lib-storage/index/mbox/istream-raw-mbox.c create mode 100644 src/lib-storage/index/mbox/istream-raw-mbox.h create mode 100644 src/lib-storage/index/mbox/mbox-file.c create mode 100644 src/lib-storage/index/mbox/mbox-file.h create mode 100644 src/lib-storage/index/mbox/mbox-lock.c create mode 100644 src/lib-storage/index/mbox/mbox-lock.h create mode 100644 src/lib-storage/index/mbox/mbox-mail.c create mode 100644 src/lib-storage/index/mbox/mbox-md5-all.c create mode 100644 src/lib-storage/index/mbox/mbox-md5-apop3d.c create mode 100644 src/lib-storage/index/mbox/mbox-md5.h create mode 100644 src/lib-storage/index/mbox/mbox-save.c create mode 100644 src/lib-storage/index/mbox/mbox-settings.c create mode 100644 src/lib-storage/index/mbox/mbox-settings.h create mode 100644 src/lib-storage/index/mbox/mbox-storage.c create mode 100644 src/lib-storage/index/mbox/mbox-storage.h create mode 100644 src/lib-storage/index/mbox/mbox-sync-list-index.c create mode 100644 src/lib-storage/index/mbox/mbox-sync-parse.c create mode 100644 src/lib-storage/index/mbox/mbox-sync-private.h create mode 100644 src/lib-storage/index/mbox/mbox-sync-rewrite.c create mode 100644 src/lib-storage/index/mbox/mbox-sync-update.c create mode 100644 src/lib-storage/index/mbox/mbox-sync.c create mode 100644 src/lib-storage/index/pop3c/Makefile.am create mode 100644 src/lib-storage/index/pop3c/Makefile.in create mode 100644 src/lib-storage/index/pop3c/pop3c-client.c create mode 100644 src/lib-storage/index/pop3c/pop3c-client.h create mode 100644 src/lib-storage/index/pop3c/pop3c-mail.c create mode 100644 src/lib-storage/index/pop3c/pop3c-settings.c create mode 100644 src/lib-storage/index/pop3c/pop3c-settings.h create mode 100644 src/lib-storage/index/pop3c/pop3c-storage.c create mode 100644 src/lib-storage/index/pop3c/pop3c-storage.h create mode 100644 src/lib-storage/index/pop3c/pop3c-sync.c create mode 100644 src/lib-storage/index/pop3c/pop3c-sync.h create mode 100644 src/lib-storage/index/raw/Makefile.am create mode 100644 src/lib-storage/index/raw/Makefile.in create mode 100644 src/lib-storage/index/raw/raw-mail.c create mode 100644 src/lib-storage/index/raw/raw-storage.c create mode 100644 src/lib-storage/index/raw/raw-storage.h create mode 100644 src/lib-storage/index/raw/raw-sync.c create mode 100644 src/lib-storage/index/raw/raw-sync.h create mode 100644 src/lib-storage/index/shared/Makefile.am create mode 100644 src/lib-storage/index/shared/Makefile.in create mode 100644 src/lib-storage/index/shared/shared-list.c create mode 100644 src/lib-storage/index/shared/shared-storage.c create mode 100644 src/lib-storage/index/shared/shared-storage.h create mode 100644 src/lib-storage/lang-user.c create mode 100644 src/lib-storage/lang-user.h create mode 100644 src/lib-storage/list/Makefile.am create mode 100644 src/lib-storage/list/Makefile.in create mode 100644 src/lib-storage/list/mail-storage-list-index-rebuild.c create mode 100644 src/lib-storage/list/mailbox-list-delete.c create mode 100644 src/lib-storage/list/mailbox-list-delete.h create mode 100644 src/lib-storage/list/mailbox-list-fs-flags.c create mode 100644 src/lib-storage/list/mailbox-list-fs-iter.c create mode 100644 src/lib-storage/list/mailbox-list-fs.c create mode 100644 src/lib-storage/list/mailbox-list-fs.h create mode 100644 src/lib-storage/list/mailbox-list-index-backend.c create mode 100644 src/lib-storage/list/mailbox-list-index-iter.c create mode 100644 src/lib-storage/list/mailbox-list-index-notify.c create mode 100644 src/lib-storage/list/mailbox-list-index-status.c create mode 100644 src/lib-storage/list/mailbox-list-index-storage.h create mode 100644 src/lib-storage/list/mailbox-list-index-sync.c create mode 100644 src/lib-storage/list/mailbox-list-index-sync.h create mode 100644 src/lib-storage/list/mailbox-list-index.c create mode 100644 src/lib-storage/list/mailbox-list-index.h create mode 100644 src/lib-storage/list/mailbox-list-iter-private.h create mode 100644 src/lib-storage/list/mailbox-list-iter.c create mode 100644 src/lib-storage/list/mailbox-list-maildir-iter.c create mode 100644 src/lib-storage/list/mailbox-list-maildir.c create mode 100644 src/lib-storage/list/mailbox-list-maildir.h create mode 100644 src/lib-storage/list/mailbox-list-none.c create mode 100644 src/lib-storage/list/mailbox-list-notify-tree.c create mode 100644 src/lib-storage/list/mailbox-list-notify-tree.h create mode 100644 src/lib-storage/list/mailbox-list-subscriptions.c create mode 100644 src/lib-storage/list/mailbox-list-subscriptions.h create mode 100644 src/lib-storage/list/subscription-file.c create mode 100644 src/lib-storage/list/subscription-file.h create mode 100644 src/lib-storage/mail-autoexpunge.c create mode 100644 src/lib-storage/mail-autoexpunge.h create mode 100644 src/lib-storage/mail-copy.c create mode 100644 src/lib-storage/mail-copy.h create mode 100644 src/lib-storage/mail-duplicate.c create mode 100644 src/lib-storage/mail-duplicate.h create mode 100644 src/lib-storage/mail-error.c create mode 100644 src/lib-storage/mail-error.h create mode 100644 src/lib-storage/mail-lua.c create mode 100644 src/lib-storage/mail-namespace.c create mode 100644 src/lib-storage/mail-namespace.h create mode 100644 src/lib-storage/mail-search-args-cmdline.c create mode 100644 src/lib-storage/mail-search-args-imap.c create mode 100644 src/lib-storage/mail-search-args-simplify.c create mode 100644 src/lib-storage/mail-search-build.c create mode 100644 src/lib-storage/mail-search-build.h create mode 100644 src/lib-storage/mail-search-mime-build.c create mode 100644 src/lib-storage/mail-search-mime-build.h create mode 100644 src/lib-storage/mail-search-mime-register.c create mode 100644 src/lib-storage/mail-search-mime-register.h create mode 100644 src/lib-storage/mail-search-mime.c create mode 100644 src/lib-storage/mail-search-mime.h create mode 100644 src/lib-storage/mail-search-parser-cmdline.c create mode 100644 src/lib-storage/mail-search-parser-imap.c create mode 100644 src/lib-storage/mail-search-parser-private.h create mode 100644 src/lib-storage/mail-search-parser.c create mode 100644 src/lib-storage/mail-search-parser.h create mode 100644 src/lib-storage/mail-search-register-human.c create mode 100644 src/lib-storage/mail-search-register-imap.c create mode 100644 src/lib-storage/mail-search-register.c create mode 100644 src/lib-storage/mail-search-register.h create mode 100644 src/lib-storage/mail-search.c create mode 100644 src/lib-storage/mail-search.h create mode 100644 src/lib-storage/mail-storage-hooks.c create mode 100644 src/lib-storage/mail-storage-hooks.h create mode 100644 src/lib-storage/mail-storage-lua-private.h create mode 100644 src/lib-storage/mail-storage-lua.c create mode 100644 src/lib-storage/mail-storage-lua.h create mode 100644 src/lib-storage/mail-storage-private.h create mode 100644 src/lib-storage/mail-storage-register.c create mode 100644 src/lib-storage/mail-storage-service.c create mode 100644 src/lib-storage/mail-storage-service.h create mode 100644 src/lib-storage/mail-storage-settings.c create mode 100644 src/lib-storage/mail-storage-settings.h create mode 100644 src/lib-storage/mail-storage.c create mode 100644 src/lib-storage/mail-storage.h create mode 100644 src/lib-storage/mail-thread.c create mode 100644 src/lib-storage/mail-thread.h create mode 100644 src/lib-storage/mail-user-lua.c create mode 100644 src/lib-storage/mail-user.c create mode 100644 src/lib-storage/mail-user.h create mode 100644 src/lib-storage/mail.c create mode 100644 src/lib-storage/mailbox-attribute-internal.c create mode 100644 src/lib-storage/mailbox-attribute-internal.h create mode 100644 src/lib-storage/mailbox-attribute-lua.c create mode 100644 src/lib-storage/mailbox-attribute-private.h create mode 100644 src/lib-storage/mailbox-attribute.c create mode 100644 src/lib-storage/mailbox-attribute.h create mode 100644 src/lib-storage/mailbox-get.c create mode 100644 src/lib-storage/mailbox-guid-cache.c create mode 100644 src/lib-storage/mailbox-guid-cache.h create mode 100644 src/lib-storage/mailbox-header.c create mode 100644 src/lib-storage/mailbox-keywords.c create mode 100644 src/lib-storage/mailbox-list-iter.h create mode 100644 src/lib-storage/mailbox-list-notify.c create mode 100644 src/lib-storage/mailbox-list-notify.h create mode 100644 src/lib-storage/mailbox-list-private.h create mode 100644 src/lib-storage/mailbox-list-register.c create mode 100644 src/lib-storage/mailbox-list.c create mode 100644 src/lib-storage/mailbox-list.h create mode 100644 src/lib-storage/mailbox-lua.c create mode 100644 src/lib-storage/mailbox-recent-flags.c create mode 100644 src/lib-storage/mailbox-recent-flags.h create mode 100644 src/lib-storage/mailbox-search-result-private.h create mode 100644 src/lib-storage/mailbox-search-result.c create mode 100644 src/lib-storage/mailbox-tree.c create mode 100644 src/lib-storage/mailbox-tree.h create mode 100644 src/lib-storage/mailbox-uidvalidity.c create mode 100644 src/lib-storage/mailbox-uidvalidity.h create mode 100644 src/lib-storage/mailbox-watch.c create mode 100644 src/lib-storage/mailbox-watch.h create mode 100644 src/lib-storage/test-mail-search-args-imap.c create mode 100644 src/lib-storage/test-mail-search-args-simplify.c create mode 100644 src/lib-storage/test-mail-storage-common.c create mode 100644 src/lib-storage/test-mail-storage-common.h create mode 100644 src/lib-storage/test-mail-storage.c create mode 100644 src/lib-storage/test-mail.c create mode 100644 src/lib-storage/test-mailbox-get.c create mode 100644 src/lib-storage/test-mailbox-list.c create mode 100644 src/lib-test/Makefile.am create mode 100644 src/lib-test/Makefile.in create mode 100644 src/lib-test/fuzzer.c create mode 100644 src/lib-test/fuzzer.h create mode 100644 src/lib-test/ostream-final-trickle.c create mode 100644 src/lib-test/ostream-final-trickle.h create mode 100644 src/lib-test/test-common.c create mode 100644 src/lib-test/test-common.h create mode 100644 src/lib-test/test-istream.c create mode 100644 src/lib-test/test-ostream.c create mode 100644 src/lib-test/test-subprocess.c create mode 100644 src/lib-test/test-subprocess.h create mode 100644 src/lib-var-expand-crypt/Makefile.am create mode 100644 src/lib-var-expand-crypt/Makefile.in create mode 100644 src/lib-var-expand-crypt/test-var-expand-crypt.c create mode 100644 src/lib-var-expand-crypt/var-expand-crypt.c create mode 100644 src/lib-var-expand/Makefile.am create mode 100644 src/lib-var-expand/Makefile.in create mode 100644 src/lib-var-expand/expansion-filter-crypt.c create mode 100644 src/lib-var-expand/expansion-filter-if.c create mode 100644 src/lib-var-expand/expansion-filter.c create mode 100644 src/lib-var-expand/expansion-parameter.c create mode 100644 src/lib-var-expand/expansion-program.c create mode 100644 src/lib-var-expand/expansion-statement.c create mode 100644 src/lib-var-expand/expansion.h create mode 100644 src/lib-var-expand/test-var-expand.c create mode 100644 src/lib-var-expand/var-expand-lexer.c create mode 100644 src/lib-var-expand/var-expand-lexer.l create mode 100644 src/lib-var-expand/var-expand-parser-private.h create mode 100644 src/lib-var-expand/var-expand-parser.c create mode 100644 src/lib-var-expand/var-expand-parser.h create mode 100644 src/lib-var-expand/var-expand-parser.y create mode 100644 src/lib-var-expand/var-expand-private.h create mode 100644 src/lib-var-expand/var-expand.c create mode 100644 src/lib-var-expand/var-expand.h create mode 100644 src/lib/Makefile.am create mode 100644 src/lib/Makefile.in create mode 100644 src/lib/UnicodeData.txt create mode 100644 src/lib/aqueue.c create mode 100644 src/lib/aqueue.h create mode 100644 src/lib/array-decl.h create mode 100644 src/lib/array.c create mode 100644 src/lib/array.h create mode 100644 src/lib/askpass.c create mode 100644 src/lib/askpass.h create mode 100644 src/lib/backtrace-string.c create mode 100644 src/lib/backtrace-string.h create mode 100644 src/lib/base32.c create mode 100644 src/lib/base32.h create mode 100644 src/lib/base64.c create mode 100644 src/lib/base64.h create mode 100644 src/lib/bits.c create mode 100644 src/lib/bits.h create mode 100644 src/lib/bsearch-insert-pos.c create mode 100644 src/lib/bsearch-insert-pos.h create mode 100644 src/lib/buffer-istream.c create mode 100644 src/lib/buffer.c create mode 100644 src/lib/buffer.h create mode 100644 src/lib/byteorder.h create mode 100644 src/lib/child-wait.c create mode 100644 src/lib/child-wait.h create mode 100644 src/lib/compat.h create mode 100644 src/lib/connection.c create mode 100644 src/lib/connection.h create mode 100644 src/lib/cpu-count.c create mode 100644 src/lib/cpu-count.h create mode 100644 src/lib/cpu-limit.c create mode 100644 src/lib/cpu-limit.h create mode 100644 src/lib/crc32.c create mode 100644 src/lib/crc32.h create mode 100644 src/lib/data-stack.c create mode 100644 src/lib/data-stack.h create mode 100644 src/lib/doc.h create mode 100644 src/lib/eacces-error.c create mode 100644 src/lib/eacces-error.h create mode 100644 src/lib/env-util.c create mode 100644 src/lib/env-util.h create mode 100644 src/lib/event-filter-lexer.c create mode 100644 src/lib/event-filter-lexer.l create mode 100644 src/lib/event-filter-parser.c create mode 100644 src/lib/event-filter-parser.h create mode 100644 src/lib/event-filter-parser.y create mode 100644 src/lib/event-filter-private.h create mode 100644 src/lib/event-filter.c create mode 100644 src/lib/event-filter.h create mode 100644 src/lib/event-log.c create mode 100644 src/lib/event-log.h create mode 100644 src/lib/execv-const.c create mode 100644 src/lib/execv-const.h create mode 100644 src/lib/failures-private.h create mode 100644 src/lib/failures.c create mode 100644 src/lib/failures.h create mode 100644 src/lib/fd-util.c create mode 100644 src/lib/fd-util.h create mode 100644 src/lib/fdatasync-path.c create mode 100644 src/lib/fdatasync-path.h create mode 100644 src/lib/fdpass.c create mode 100644 src/lib/fdpass.h create mode 100644 src/lib/file-cache.c create mode 100644 src/lib/file-cache.h create mode 100644 src/lib/file-copy.c create mode 100644 src/lib/file-copy.h create mode 100644 src/lib/file-create-locked.c create mode 100644 src/lib/file-create-locked.h create mode 100644 src/lib/file-dotlock.c create mode 100644 src/lib/file-dotlock.h create mode 100644 src/lib/file-lock.c create mode 100644 src/lib/file-lock.h create mode 100644 src/lib/file-set-size.c create mode 100644 src/lib/file-set-size.h create mode 100644 src/lib/fsync-mode.h create mode 100644 src/lib/guid.c create mode 100644 src/lib/guid.h create mode 100644 src/lib/hash-decl.h create mode 100644 src/lib/hash-format.c create mode 100644 src/lib/hash-format.h create mode 100644 src/lib/hash-method.c create mode 100644 src/lib/hash-method.h create mode 100644 src/lib/hash.c create mode 100644 src/lib/hash.h create mode 100644 src/lib/hash2.c create mode 100644 src/lib/hash2.h create mode 100644 src/lib/hex-binary.c create mode 100644 src/lib/hex-binary.h create mode 100644 src/lib/hex-dec.c create mode 100644 src/lib/hex-dec.h create mode 100644 src/lib/hmac-cram-md5.c create mode 100644 src/lib/hmac-cram-md5.h create mode 100644 src/lib/hmac.c create mode 100644 src/lib/hmac.h create mode 100644 src/lib/home-expand.c create mode 100644 src/lib/home-expand.h create mode 100644 src/lib/hook-build.c create mode 100644 src/lib/hook-build.h create mode 100644 src/lib/hostpid.c create mode 100644 src/lib/hostpid.h create mode 100644 src/lib/imem.c create mode 100644 src/lib/imem.h create mode 100644 src/lib/ioloop-epoll.c create mode 100644 src/lib/ioloop-iolist.c create mode 100644 src/lib/ioloop-iolist.h create mode 100644 src/lib/ioloop-kqueue.c create mode 100644 src/lib/ioloop-notify-fd.c create mode 100644 src/lib/ioloop-notify-fd.h create mode 100644 src/lib/ioloop-notify-inotify.c create mode 100644 src/lib/ioloop-notify-kqueue.c create mode 100644 src/lib/ioloop-notify-none.c create mode 100644 src/lib/ioloop-poll.c create mode 100644 src/lib/ioloop-private.h create mode 100644 src/lib/ioloop-select.c create mode 100644 src/lib/ioloop.c create mode 100644 src/lib/ioloop.h create mode 100644 src/lib/iostream-multiplex-private.h create mode 100644 src/lib/iostream-private.h create mode 100644 src/lib/iostream-proxy.c create mode 100644 src/lib/iostream-proxy.h create mode 100644 src/lib/iostream-pump.c create mode 100644 src/lib/iostream-pump.h create mode 100644 src/lib/iostream-rawlog-private.h create mode 100644 src/lib/iostream-rawlog.c create mode 100644 src/lib/iostream-rawlog.h create mode 100644 src/lib/iostream-temp.c create mode 100644 src/lib/iostream-temp.h create mode 100644 src/lib/iostream.c create mode 100644 src/lib/iostream.h create mode 100644 src/lib/ipwd.c create mode 100644 src/lib/ipwd.h create mode 100644 src/lib/iso8601-date.c create mode 100644 src/lib/iso8601-date.h create mode 100644 src/lib/istream-base64-decoder.c create mode 100644 src/lib/istream-base64-encoder.c create mode 100644 src/lib/istream-base64.h create mode 100644 src/lib/istream-callback.c create mode 100644 src/lib/istream-callback.h create mode 100644 src/lib/istream-chain.c create mode 100644 src/lib/istream-chain.h create mode 100644 src/lib/istream-concat.c create mode 100644 src/lib/istream-concat.h create mode 100644 src/lib/istream-crlf.c create mode 100644 src/lib/istream-crlf.h create mode 100644 src/lib/istream-data.c create mode 100644 src/lib/istream-failure-at.c create mode 100644 src/lib/istream-failure-at.h create mode 100644 src/lib/istream-file-private.h create mode 100644 src/lib/istream-file.c create mode 100644 src/lib/istream-hash.c create mode 100644 src/lib/istream-hash.h create mode 100644 src/lib/istream-limit.c create mode 100644 src/lib/istream-multiplex.c create mode 100644 src/lib/istream-multiplex.h create mode 100644 src/lib/istream-nonuls.c create mode 100644 src/lib/istream-nonuls.h create mode 100644 src/lib/istream-noop.c create mode 100644 src/lib/istream-private.h create mode 100644 src/lib/istream-rawlog.c create mode 100644 src/lib/istream-rawlog.h create mode 100644 src/lib/istream-seekable.c create mode 100644 src/lib/istream-seekable.h create mode 100644 src/lib/istream-sized.c create mode 100644 src/lib/istream-sized.h create mode 100644 src/lib/istream-tee.c create mode 100644 src/lib/istream-tee.h create mode 100644 src/lib/istream-timeout.c create mode 100644 src/lib/istream-timeout.h create mode 100644 src/lib/istream-try.c create mode 100644 src/lib/istream-try.h create mode 100644 src/lib/istream-unix.c create mode 100644 src/lib/istream-unix.h create mode 100644 src/lib/istream.c create mode 100644 src/lib/istream.h create mode 100644 src/lib/lib-event-private.h create mode 100644 src/lib/lib-event.c create mode 100644 src/lib/lib-event.h create mode 100644 src/lib/lib-signals.c create mode 100644 src/lib/lib-signals.h create mode 100644 src/lib/lib.c create mode 100644 src/lib/lib.h create mode 100644 src/lib/llist.h create mode 100644 src/lib/log-throttle.c create mode 100644 src/lib/log-throttle.h create mode 100644 src/lib/macros.h create mode 100644 src/lib/malloc-overflow.h create mode 100644 src/lib/md4.c create mode 100644 src/lib/md4.h create mode 100644 src/lib/md5.c create mode 100644 src/lib/md5.h create mode 100644 src/lib/memarea.c create mode 100644 src/lib/memarea.h create mode 100644 src/lib/mempool-allocfree.c create mode 100644 src/lib/mempool-alloconly.c create mode 100644 src/lib/mempool-datastack.c create mode 100644 src/lib/mempool-null.c create mode 100644 src/lib/mempool-system.c create mode 100644 src/lib/mempool-unsafe-datastack.c create mode 100644 src/lib/mempool.c create mode 100644 src/lib/mempool.h create mode 100644 src/lib/mkdir-parents.c create mode 100644 src/lib/mkdir-parents.h create mode 100644 src/lib/mmap-anon.c create mode 100644 src/lib/mmap-util.c create mode 100644 src/lib/mmap-util.h create mode 100644 src/lib/module-context.h create mode 100644 src/lib/module-dir.c create mode 100644 src/lib/module-dir.h create mode 100644 src/lib/mountpoint.c create mode 100644 src/lib/mountpoint.h create mode 100644 src/lib/net.c create mode 100644 src/lib/net.h create mode 100644 src/lib/nfs-workarounds.c create mode 100644 src/lib/nfs-workarounds.h create mode 100644 src/lib/numpack.c create mode 100644 src/lib/numpack.h create mode 100644 src/lib/ostream-buffer.c create mode 100644 src/lib/ostream-failure-at.c create mode 100644 src/lib/ostream-failure-at.h create mode 100644 src/lib/ostream-file-private.h create mode 100644 src/lib/ostream-file.c create mode 100644 src/lib/ostream-hash.c create mode 100644 src/lib/ostream-hash.h create mode 100644 src/lib/ostream-multiplex.c create mode 100644 src/lib/ostream-multiplex.h create mode 100644 src/lib/ostream-null.c create mode 100644 src/lib/ostream-null.h create mode 100644 src/lib/ostream-private.h create mode 100644 src/lib/ostream-rawlog.c create mode 100644 src/lib/ostream-rawlog.h create mode 100644 src/lib/ostream-unix.c create mode 100644 src/lib/ostream-unix.h create mode 100644 src/lib/ostream-wrapper.c create mode 100644 src/lib/ostream-wrapper.h create mode 100644 src/lib/ostream.c create mode 100644 src/lib/ostream.h create mode 100644 src/lib/path-util.c create mode 100644 src/lib/path-util.h create mode 100644 src/lib/pkcs5.c create mode 100644 src/lib/pkcs5.h create mode 100644 src/lib/primes.c create mode 100644 src/lib/primes.h create mode 100644 src/lib/printf-format-fix.c create mode 100644 src/lib/printf-format-fix.h create mode 100644 src/lib/priorityq.c create mode 100644 src/lib/priorityq.h create mode 100644 src/lib/process-stat.c create mode 100644 src/lib/process-stat.h create mode 100644 src/lib/process-title.c create mode 100644 src/lib/process-title.h create mode 100644 src/lib/punycode.c create mode 100644 src/lib/punycode.h create mode 100644 src/lib/rand.c create mode 100644 src/lib/randgen.c create mode 100644 src/lib/randgen.h create mode 100644 src/lib/read-full.c create mode 100644 src/lib/read-full.h create mode 100644 src/lib/restrict-access.c create mode 100644 src/lib/restrict-access.h create mode 100644 src/lib/restrict-process-size.c create mode 100644 src/lib/restrict-process-size.h create mode 100644 src/lib/safe-memset.c create mode 100644 src/lib/safe-memset.h create mode 100644 src/lib/safe-mkdir.c create mode 100644 src/lib/safe-mkdir.h create mode 100644 src/lib/safe-mkstemp.c create mode 100644 src/lib/safe-mkstemp.h create mode 100644 src/lib/sendfile-util.c create mode 100644 src/lib/sendfile-util.h create mode 100644 src/lib/seq-range-array.c create mode 100644 src/lib/seq-range-array.h create mode 100644 src/lib/seq-set-builder.c create mode 100644 src/lib/seq-set-builder.h create mode 100644 src/lib/sha-common.h create mode 100644 src/lib/sha1.c create mode 100644 src/lib/sha1.h create mode 100644 src/lib/sha2.c create mode 100644 src/lib/sha2.h create mode 100644 src/lib/sha3.c create mode 100644 src/lib/sha3.h create mode 100644 src/lib/sleep.c create mode 100644 src/lib/sleep.h create mode 100644 src/lib/sort.c create mode 100644 src/lib/sort.h create mode 100644 src/lib/stats-dist.c create mode 100644 src/lib/stats-dist.h create mode 100644 src/lib/str-find.c create mode 100644 src/lib/str-find.h create mode 100644 src/lib/str-parse.c create mode 100644 src/lib/str-parse.h create mode 100644 src/lib/str-sanitize.c create mode 100644 src/lib/str-sanitize.h create mode 100644 src/lib/str-table.c create mode 100644 src/lib/str-table.h create mode 100644 src/lib/str.c create mode 100644 src/lib/str.h create mode 100644 src/lib/strescape.c create mode 100644 src/lib/strescape.h create mode 100644 src/lib/strfuncs.c create mode 100644 src/lib/strfuncs.h create mode 100644 src/lib/strnum.c create mode 100644 src/lib/strnum.h create mode 100644 src/lib/test-aqueue.c create mode 100644 src/lib/test-array.c create mode 100644 src/lib/test-backtrace.c create mode 100644 src/lib/test-base32.c create mode 100644 src/lib/test-base64.c create mode 100644 src/lib/test-bits.c create mode 100644 src/lib/test-bsearch-insert-pos.c create mode 100644 src/lib/test-buffer-istream.c create mode 100644 src/lib/test-buffer.c create mode 100644 src/lib/test-byteorder.c create mode 100644 src/lib/test-connection.c create mode 100644 src/lib/test-cpu-limit.c create mode 100644 src/lib/test-crc32.c create mode 100644 src/lib/test-data-stack.c create mode 100644 src/lib/test-env-util.c create mode 100644 src/lib/test-event-category-register.c create mode 100644 src/lib/test-event-filter-expr.c create mode 100644 src/lib/test-event-filter-merge.c create mode 100644 src/lib/test-event-filter-parser.c create mode 100644 src/lib/test-event-filter.c create mode 100644 src/lib/test-event-flatten.c create mode 100644 src/lib/test-event-log.c create mode 100644 src/lib/test-failures.c create mode 100644 src/lib/test-fd-util.c create mode 100644 src/lib/test-file-cache.c create mode 100644 src/lib/test-file-create-locked.c create mode 100644 src/lib/test-guid.c create mode 100644 src/lib/test-hash-format.c create mode 100644 src/lib/test-hash-method.c create mode 100644 src/lib/test-hash.c create mode 100644 src/lib/test-hex-binary.c create mode 100644 src/lib/test-hmac.c create mode 100644 src/lib/test-imem.c create mode 100644 src/lib/test-ioloop.c create mode 100644 src/lib/test-iostream-proxy.c create mode 100644 src/lib/test-iostream-pump.c create mode 100644 src/lib/test-iostream-temp.c create mode 100644 src/lib/test-iso8601-date.c create mode 100644 src/lib/test-istream-base64-decoder.c create mode 100644 src/lib/test-istream-base64-encoder.c create mode 100644 src/lib/test-istream-chain.c create mode 100644 src/lib/test-istream-concat.c create mode 100644 src/lib/test-istream-crlf.c create mode 100644 src/lib/test-istream-failure-at.c create mode 100644 src/lib/test-istream-multiplex.c create mode 100644 src/lib/test-istream-noop.c create mode 100644 src/lib/test-istream-seekable.c create mode 100644 src/lib/test-istream-sized.c create mode 100644 src/lib/test-istream-tee.c create mode 100644 src/lib/test-istream-try.c create mode 100644 src/lib/test-istream-unix.c create mode 100644 src/lib/test-istream.c create mode 100644 src/lib/test-lib-event.c create mode 100644 src/lib/test-lib-signals.c create mode 100644 src/lib/test-lib.c create mode 100644 src/lib/test-lib.h create mode 100644 src/lib/test-lib.inc create mode 100644 src/lib/test-llist.c create mode 100644 src/lib/test-log-throttle.c create mode 100644 src/lib/test-macros.c create mode 100644 src/lib/test-malloc-overflow.c create mode 100644 src/lib/test-memarea.c create mode 100644 src/lib/test-mempool-allocfree.c create mode 100644 src/lib/test-mempool-alloconly.c create mode 100644 src/lib/test-mempool.c create mode 100644 src/lib/test-multiplex.c create mode 100644 src/lib/test-net.c create mode 100644 src/lib/test-numpack.c create mode 100644 src/lib/test-ostream-buffer.c create mode 100644 src/lib/test-ostream-failure-at.c create mode 100644 src/lib/test-ostream-file.c create mode 100644 src/lib/test-ostream-multiplex.c create mode 100644 src/lib/test-path-util.c create mode 100644 src/lib/test-pkcs5.c create mode 100644 src/lib/test-primes.c create mode 100644 src/lib/test-printf-format-fix.c create mode 100644 src/lib/test-priorityq.c create mode 100644 src/lib/test-punycode.c create mode 100644 src/lib/test-random.c create mode 100644 src/lib/test-seq-range-array.c create mode 100644 src/lib/test-seq-set-builder.c create mode 100644 src/lib/test-stats-dist.c create mode 100644 src/lib/test-str-find.c create mode 100644 src/lib/test-str-parse.c create mode 100644 src/lib/test-str-sanitize.c create mode 100644 src/lib/test-str-table.c create mode 100644 src/lib/test-str.c create mode 100644 src/lib/test-strescape.c create mode 100644 src/lib/test-strfuncs.c create mode 100644 src/lib/test-strnum.c create mode 100644 src/lib/test-time-util.c create mode 100644 src/lib/test-unichar.c create mode 100644 src/lib/test-uri.c create mode 100644 src/lib/test-utc-mktime.c create mode 100644 src/lib/test-wildcard-match.c create mode 100644 src/lib/time-util.c create mode 100644 src/lib/time-util.h create mode 100644 src/lib/unichar.c create mode 100644 src/lib/unichar.h create mode 100644 src/lib/unicodemap.c create mode 100755 src/lib/unicodemap.pl create mode 100644 src/lib/unix-socket-create.c create mode 100644 src/lib/unix-socket-create.h create mode 100644 src/lib/unlink-directory.c create mode 100644 src/lib/unlink-directory.h create mode 100644 src/lib/unlink-old-files.c create mode 100644 src/lib/unlink-old-files.h create mode 100644 src/lib/uri-util.c create mode 100644 src/lib/uri-util.h create mode 100644 src/lib/utc-mktime.c create mode 100644 src/lib/utc-mktime.h create mode 100644 src/lib/utc-offset.c create mode 100644 src/lib/utc-offset.h create mode 100644 src/lib/wildcard-match.c create mode 100644 src/lib/wildcard-match.h create mode 100644 src/lib/write-full.c create mode 100644 src/lib/write-full.h create mode 100644 src/lmtp/Makefile.am create mode 100644 src/lmtp/Makefile.in create mode 100644 src/lmtp/lmtp-client.c create mode 100644 src/lmtp/lmtp-client.h create mode 100644 src/lmtp/lmtp-commands.c create mode 100644 src/lmtp/lmtp-commands.h create mode 100644 src/lmtp/lmtp-common.h create mode 100644 src/lmtp/lmtp-local.c create mode 100644 src/lmtp/lmtp-local.h create mode 100644 src/lmtp/lmtp-proxy.c create mode 100644 src/lmtp/lmtp-proxy.h create mode 100644 src/lmtp/lmtp-recipient.c create mode 100644 src/lmtp/lmtp-recipient.h create mode 100644 src/lmtp/lmtp-settings.c create mode 100644 src/lmtp/lmtp-settings.h create mode 100644 src/lmtp/main.c create mode 100644 src/log/Makefile.am create mode 100644 src/log/Makefile.in create mode 100644 src/log/doveadm-connection.c create mode 100644 src/log/doveadm-connection.h create mode 100644 src/log/log-connection.c create mode 100644 src/log/log-connection.h create mode 100644 src/log/log-settings.c create mode 100644 src/log/main.c create mode 100644 src/login-common/Makefile.am create mode 100644 src/login-common/Makefile.in create mode 100644 src/login-common/client-common-auth.c create mode 100644 src/login-common/client-common.c create mode 100644 src/login-common/client-common.h create mode 100644 src/login-common/login-common.h create mode 100644 src/login-common/login-proxy-state.c create mode 100644 src/login-common/login-proxy-state.h create mode 100644 src/login-common/login-proxy.c create mode 100644 src/login-common/login-proxy.h create mode 100644 src/login-common/login-settings.c create mode 100644 src/login-common/login-settings.h create mode 100644 src/login-common/main.c create mode 100644 src/login-common/sasl-server.c create mode 100644 src/login-common/sasl-server.h create mode 100644 src/master/Makefile.am create mode 100644 src/master/Makefile.in create mode 100644 src/master/capabilities-posix.c create mode 100644 src/master/capabilities.h create mode 100644 src/master/common.h create mode 100644 src/master/dup2-array.c create mode 100644 src/master/dup2-array.h create mode 100644 src/master/main.c create mode 100644 src/master/master-client.c create mode 100644 src/master/master-client.h create mode 100644 src/master/master-settings.c create mode 100644 src/master/master-settings.h create mode 100644 src/master/service-anvil.c create mode 100644 src/master/service-anvil.h create mode 100644 src/master/service-listen.c create mode 100644 src/master/service-listen.h create mode 100644 src/master/service-log.c create mode 100644 src/master/service-log.h create mode 100644 src/master/service-monitor.c create mode 100644 src/master/service-monitor.h create mode 100644 src/master/service-process-notify.c create mode 100644 src/master/service-process-notify.h create mode 100644 src/master/service-process.c create mode 100644 src/master/service-process.h create mode 100644 src/master/service.c create mode 100644 src/master/service.h create mode 100644 src/plugins/Makefile.am create mode 100644 src/plugins/Makefile.in create mode 100644 src/plugins/acl/Makefile.am create mode 100644 src/plugins/acl/Makefile.in create mode 100644 src/plugins/acl/acl-api-private.h create mode 100644 src/plugins/acl/acl-api.c create mode 100644 src/plugins/acl/acl-api.h create mode 100644 src/plugins/acl/acl-attributes.c create mode 100644 src/plugins/acl/acl-backend-vfile-acllist.c create mode 100644 src/plugins/acl/acl-backend-vfile-update.c create mode 100644 src/plugins/acl/acl-backend-vfile.c create mode 100644 src/plugins/acl/acl-backend-vfile.h create mode 100644 src/plugins/acl/acl-backend.c create mode 100644 src/plugins/acl/acl-cache.c create mode 100644 src/plugins/acl/acl-cache.h create mode 100644 src/plugins/acl/acl-global-file.c create mode 100644 src/plugins/acl/acl-global-file.h create mode 100644 src/plugins/acl/acl-lookup-dict.c create mode 100644 src/plugins/acl/acl-lookup-dict.h create mode 100644 src/plugins/acl/acl-mailbox-list.c create mode 100644 src/plugins/acl/acl-mailbox.c create mode 100644 src/plugins/acl/acl-plugin.c create mode 100644 src/plugins/acl/acl-plugin.h create mode 100644 src/plugins/acl/acl-rights.c create mode 100644 src/plugins/acl/acl-rights.h create mode 100644 src/plugins/acl/acl-settings.c create mode 100644 src/plugins/acl/acl-settings.h create mode 100644 src/plugins/acl/acl-shared-storage.c create mode 100644 src/plugins/acl/acl-shared-storage.h create mode 100644 src/plugins/acl/acl-storage.c create mode 100644 src/plugins/acl/acl-storage.h create mode 100644 src/plugins/acl/doveadm-acl.c create mode 100644 src/plugins/acl/test-acl.c create mode 100644 src/plugins/apparmor/Makefile.am create mode 100644 src/plugins/apparmor/Makefile.in create mode 100644 src/plugins/apparmor/apparmor-plugin.c create mode 100644 src/plugins/charset-alias/Makefile.am create mode 100644 src/plugins/charset-alias/Makefile.in create mode 100644 src/plugins/charset-alias/charset-alias-plugin.c create mode 100644 src/plugins/charset-alias/charset-alias-plugin.h create mode 100644 src/plugins/fs-compress/Makefile.am create mode 100644 src/plugins/fs-compress/Makefile.in create mode 100644 src/plugins/fs-compress/fs-compress.c create mode 100644 src/plugins/fts-flatcurve/Makefile.am create mode 100644 src/plugins/fts-flatcurve/Makefile.in create mode 100644 src/plugins/fts-flatcurve/doveadm-dump-flatcurve.c create mode 100644 src/plugins/fts-flatcurve/doveadm-dump-flatcurve.h create mode 100644 src/plugins/fts-flatcurve/doveadm-fts-flatcurve.c create mode 100644 src/plugins/fts-flatcurve/fts-backend-flatcurve-xapian.cc create mode 100644 src/plugins/fts-flatcurve/fts-backend-flatcurve-xapian.h create mode 100644 src/plugins/fts-flatcurve/fts-backend-flatcurve.c create mode 100644 src/plugins/fts-flatcurve/fts-backend-flatcurve.h create mode 100644 src/plugins/fts-flatcurve/fts-flatcurve-plugin.c create mode 100644 src/plugins/fts-flatcurve/fts-flatcurve-plugin.h create mode 100644 src/plugins/fts-flatcurve/fts-flatcurve-settings.c create mode 100644 src/plugins/fts-flatcurve/fts-flatcurve-settings.h create mode 100644 src/plugins/fts-solr/Makefile.am create mode 100644 src/plugins/fts-solr/Makefile.in create mode 100644 src/plugins/fts-solr/fts-backend-solr.c create mode 100644 src/plugins/fts-solr/fts-solr-plugin.c create mode 100644 src/plugins/fts-solr/fts-solr-plugin.h create mode 100644 src/plugins/fts-solr/fts-solr-settings.c create mode 100644 src/plugins/fts-solr/fts-solr-settings.h create mode 100644 src/plugins/fts-solr/solr-connection.c create mode 100644 src/plugins/fts-solr/solr-connection.h create mode 100644 src/plugins/fts-solr/solr-response.c create mode 100644 src/plugins/fts-solr/solr-response.h create mode 100644 src/plugins/fts-solr/test-solr-response.c create mode 100644 src/plugins/fts/Makefile.am create mode 100644 src/plugins/fts/Makefile.in create mode 100755 src/plugins/fts/decode2text.sh create mode 100644 src/plugins/fts/doveadm-fts.c create mode 100644 src/plugins/fts/doveadm-fts.h create mode 100644 src/plugins/fts/fts-api-private.h create mode 100644 src/plugins/fts/fts-api.c create mode 100644 src/plugins/fts/fts-api.h create mode 100644 src/plugins/fts/fts-build-mail.c create mode 100644 src/plugins/fts/fts-build-mail.h create mode 100644 src/plugins/fts/fts-indexer.c create mode 100644 src/plugins/fts/fts-indexer.h create mode 100644 src/plugins/fts/fts-parser-html.c create mode 100644 src/plugins/fts/fts-parser-script.c create mode 100644 src/plugins/fts/fts-parser-tika.c create mode 100644 src/plugins/fts/fts-parser.c create mode 100644 src/plugins/fts/fts-parser.h create mode 100644 src/plugins/fts/fts-plugin.c create mode 100644 src/plugins/fts/fts-plugin.h create mode 100644 src/plugins/fts/fts-search-args.c create mode 100644 src/plugins/fts/fts-search-args.h create mode 100644 src/plugins/fts/fts-search-serialize.c create mode 100644 src/plugins/fts/fts-search-serialize.h create mode 100644 src/plugins/fts/fts-search.c create mode 100644 src/plugins/fts/fts-settings.c create mode 100644 src/plugins/fts/fts-settings.h create mode 100644 src/plugins/fts/fts-storage.c create mode 100644 src/plugins/fts/fts-storage.h create mode 100644 src/plugins/fts/fts-user.c create mode 100644 src/plugins/fts/fts-user.h create mode 100644 src/plugins/fts/xml2text.c create mode 100644 src/plugins/imap-acl/Makefile.am create mode 100644 src/plugins/imap-acl/Makefile.in create mode 100644 src/plugins/imap-acl/imap-acl-plugin.c create mode 100644 src/plugins/imap-acl/imap-acl-plugin.h create mode 100644 src/plugins/imap-quota/Makefile.am create mode 100644 src/plugins/imap-quota/Makefile.in create mode 100644 src/plugins/imap-quota/imap-quota-plugin.c create mode 100644 src/plugins/imap-quota/imap-quota-plugin.h create mode 100644 src/plugins/last-login/Makefile.am create mode 100644 src/plugins/last-login/Makefile.in create mode 100644 src/plugins/last-login/last-login-plugin.c create mode 100644 src/plugins/last-login/last-login-plugin.h create mode 100644 src/plugins/lazy-expunge/Makefile.am create mode 100644 src/plugins/lazy-expunge/Makefile.in create mode 100644 src/plugins/lazy-expunge/lazy-expunge-plugin.c create mode 100644 src/plugins/lazy-expunge/lazy-expunge-plugin.h create mode 100644 src/plugins/lazy-expunge/lazy-expunge-settings.c create mode 100644 src/plugins/mail-compress/Makefile.am create mode 100644 src/plugins/mail-compress/Makefile.in create mode 100644 src/plugins/mail-compress/mail-compress-plugin.c create mode 100644 src/plugins/mail-compress/mail-compress-plugin.h create mode 100644 src/plugins/mail-crypt/Makefile.am create mode 100644 src/plugins/mail-crypt/Makefile.in create mode 100644 src/plugins/mail-crypt/crypt-settings.c create mode 100644 src/plugins/mail-crypt/crypt-settings.h create mode 100644 src/plugins/mail-crypt/doveadm-mail-crypt.c create mode 100644 src/plugins/mail-crypt/fs-crypt.c create mode 100644 src/plugins/mail-crypt/mail-crypt-acl-plugin.c create mode 100644 src/plugins/mail-crypt/mail-crypt-common.h create mode 100644 src/plugins/mail-crypt/mail-crypt-global-key.c create mode 100644 src/plugins/mail-crypt/mail-crypt-global-key.h create mode 100644 src/plugins/mail-crypt/mail-crypt-key.c create mode 100644 src/plugins/mail-crypt/mail-crypt-key.h create mode 100644 src/plugins/mail-crypt/mail-crypt-plugin.c create mode 100644 src/plugins/mail-crypt/mail-crypt-plugin.h create mode 100644 src/plugins/mail-crypt/test-fs-crypt.c create mode 100644 src/plugins/mail-crypt/test-mail-global-key.c create mode 100644 src/plugins/mail-crypt/test-mail-key.c create mode 100644 src/plugins/mail-log/Makefile.am create mode 100644 src/plugins/mail-log/Makefile.in create mode 100644 src/plugins/mail-log/mail-log-plugin.c create mode 100644 src/plugins/mail-log/mail-log-plugin.h create mode 100644 src/plugins/mail-lua/Makefile.am create mode 100644 src/plugins/mail-lua/Makefile.in create mode 100644 src/plugins/mail-lua/mail-lua-plugin.c create mode 100644 src/plugins/mail-lua/mail-lua-plugin.h create mode 100644 src/plugins/mail-lua/mail-lua-settings.c create mode 100644 src/plugins/mail-lua/mail-lua-settings.h create mode 100644 src/plugins/notify-status/Makefile.am create mode 100644 src/plugins/notify-status/Makefile.in create mode 100644 src/plugins/notify-status/notify-status-plugin.c create mode 100644 src/plugins/notify/Makefile.am create mode 100644 src/plugins/notify/Makefile.in create mode 100644 src/plugins/notify/notify-plugin-private.h create mode 100644 src/plugins/notify/notify-plugin.c create mode 100644 src/plugins/notify/notify-plugin.h create mode 100644 src/plugins/notify/notify-storage.c create mode 100644 src/plugins/pop3-migration/Makefile.am create mode 100644 src/plugins/pop3-migration/Makefile.in create mode 100644 src/plugins/pop3-migration/pop3-migration-plugin.c create mode 100644 src/plugins/pop3-migration/pop3-migration-plugin.h create mode 100644 src/plugins/pop3-migration/test-pop3-migration-plugin.c create mode 100644 src/plugins/push-notification/Makefile.am create mode 100644 src/plugins/push-notification/Makefile.in create mode 100644 src/plugins/push-notification/push-notification-driver-dlog.c create mode 100644 src/plugins/push-notification/push-notification-driver-lua.c create mode 100644 src/plugins/push-notification/push-notification-driver-ox.c create mode 100644 src/plugins/push-notification/push-notification-drivers.c create mode 100644 src/plugins/push-notification/push-notification-drivers.h create mode 100644 src/plugins/push-notification/push-notification-event-flagsclear.c create mode 100644 src/plugins/push-notification/push-notification-event-flagsclear.h create mode 100644 src/plugins/push-notification/push-notification-event-flagsset.c create mode 100644 src/plugins/push-notification/push-notification-event-flagsset.h create mode 100644 src/plugins/push-notification/push-notification-event-mailboxcreate.c create mode 100644 src/plugins/push-notification/push-notification-event-mailboxcreate.h create mode 100644 src/plugins/push-notification/push-notification-event-mailboxdelete.c create mode 100644 src/plugins/push-notification/push-notification-event-mailboxdelete.h create mode 100644 src/plugins/push-notification/push-notification-event-mailboxrename.c create mode 100644 src/plugins/push-notification/push-notification-event-mailboxrename.h create mode 100644 src/plugins/push-notification/push-notification-event-mailboxsubscribe.c create mode 100644 src/plugins/push-notification/push-notification-event-mailboxsubscribe.h create mode 100644 src/plugins/push-notification/push-notification-event-mailboxunsubscribe.c create mode 100644 src/plugins/push-notification/push-notification-event-mailboxunsubscribe.h create mode 100644 src/plugins/push-notification/push-notification-event-message-common.c create mode 100644 src/plugins/push-notification/push-notification-event-message-common.h create mode 100644 src/plugins/push-notification/push-notification-event-messageappend.c create mode 100644 src/plugins/push-notification/push-notification-event-messageappend.h create mode 100644 src/plugins/push-notification/push-notification-event-messageexpunge.c create mode 100644 src/plugins/push-notification/push-notification-event-messageexpunge.h create mode 100644 src/plugins/push-notification/push-notification-event-messagenew.c create mode 100644 src/plugins/push-notification/push-notification-event-messagenew.h create mode 100644 src/plugins/push-notification/push-notification-event-messageread.c create mode 100644 src/plugins/push-notification/push-notification-event-messageread.h create mode 100644 src/plugins/push-notification/push-notification-event-messagetrash.c create mode 100644 src/plugins/push-notification/push-notification-event-messagetrash.h create mode 100644 src/plugins/push-notification/push-notification-events-rfc5423.c create mode 100644 src/plugins/push-notification/push-notification-events-rfc5423.h create mode 100644 src/plugins/push-notification/push-notification-events.c create mode 100644 src/plugins/push-notification/push-notification-events.h create mode 100644 src/plugins/push-notification/push-notification-plugin.c create mode 100644 src/plugins/push-notification/push-notification-plugin.h create mode 100644 src/plugins/push-notification/push-notification-settings.c create mode 100644 src/plugins/push-notification/push-notification-settings.h create mode 100644 src/plugins/push-notification/push-notification-triggers.c create mode 100644 src/plugins/push-notification/push-notification-triggers.h create mode 100644 src/plugins/push-notification/push-notification-txn-mbox.c create mode 100644 src/plugins/push-notification/push-notification-txn-mbox.h create mode 100644 src/plugins/push-notification/push-notification-txn-msg.c create mode 100644 src/plugins/push-notification/push-notification-txn-msg.h create mode 100644 src/plugins/quota-clone/Makefile.am create mode 100644 src/plugins/quota-clone/Makefile.in create mode 100644 src/plugins/quota-clone/quota-clone-plugin.c create mode 100644 src/plugins/quota-clone/quota-clone-plugin.h create mode 100644 src/plugins/quota-clone/quota-clone-settings.c create mode 100644 src/plugins/quota-clone/quota-clone-settings.h create mode 100644 src/plugins/quota/Makefile.am create mode 100644 src/plugins/quota/Makefile.in create mode 100644 src/plugins/quota/doveadm-quota.c create mode 100644 src/plugins/quota/quota-count.c create mode 100644 src/plugins/quota/quota-fs.c create mode 100644 src/plugins/quota/quota-fs.h create mode 100644 src/plugins/quota/quota-imapc.c create mode 100644 src/plugins/quota/quota-maildir.c create mode 100644 src/plugins/quota/quota-plugin.c create mode 100644 src/plugins/quota/quota-plugin.h create mode 100644 src/plugins/quota/quota-private.h create mode 100644 src/plugins/quota/quota-settings.c create mode 100644 src/plugins/quota/quota-settings.h create mode 100644 src/plugins/quota/quota-status-settings.c create mode 100644 src/plugins/quota/quota-status-settings.h create mode 100644 src/plugins/quota/quota-status.c create mode 100644 src/plugins/quota/quota-storage.c create mode 100644 src/plugins/quota/quota-util.c create mode 100644 src/plugins/quota/quota.c create mode 100644 src/plugins/quota/quota.h create mode 100644 src/plugins/quota/rquota.x create mode 100644 src/plugins/quota/test-quota-util.c create mode 100644 src/plugins/trash/Makefile.am create mode 100644 src/plugins/trash/Makefile.in create mode 100644 src/plugins/trash/trash-plugin.c create mode 100644 src/plugins/trash/trash-plugin.h create mode 100644 src/plugins/virtual/Makefile.am create mode 100644 src/plugins/virtual/Makefile.in create mode 100644 src/plugins/virtual/virtual-config.c create mode 100644 src/plugins/virtual/virtual-list.c create mode 100644 src/plugins/virtual/virtual-mail.c create mode 100644 src/plugins/virtual/virtual-plugin.c create mode 100644 src/plugins/virtual/virtual-plugin.h create mode 100644 src/plugins/virtual/virtual-save.c create mode 100644 src/plugins/virtual/virtual-search.c create mode 100644 src/plugins/virtual/virtual-settings.c create mode 100644 src/plugins/virtual/virtual-settings.h create mode 100644 src/plugins/virtual/virtual-storage.c create mode 100644 src/plugins/virtual/virtual-storage.h create mode 100644 src/plugins/virtual/virtual-sync.c create mode 100644 src/plugins/virtual/virtual-transaction.c create mode 100644 src/plugins/virtual/virtual-transaction.h create mode 100644 src/plugins/welcome/Makefile.am create mode 100644 src/plugins/welcome/Makefile.in create mode 100644 src/plugins/welcome/welcome-plugin.c create mode 100644 src/pop3-login/Makefile.am create mode 100644 src/pop3-login/Makefile.in create mode 100644 src/pop3-login/client-authenticate.c create mode 100644 src/pop3-login/client-authenticate.h create mode 100644 src/pop3-login/client.c create mode 100644 src/pop3-login/client.h create mode 100644 src/pop3-login/pop3-login-settings.c create mode 100644 src/pop3-login/pop3-proxy.c create mode 100644 src/pop3-login/pop3-proxy.h create mode 100644 src/pop3/Makefile.am create mode 100644 src/pop3/Makefile.in create mode 100644 src/pop3/main.c create mode 100644 src/pop3/pop3-client.c create mode 100644 src/pop3/pop3-client.h create mode 100644 src/pop3/pop3-commands.c create mode 100644 src/pop3/pop3-commands.h create mode 100644 src/pop3/pop3-common.h create mode 100644 src/pop3/pop3-settings.c create mode 100644 src/pop3/pop3-settings.h create mode 100644 src/stats/Makefile.am create mode 100644 src/stats/Makefile.in create mode 100644 src/stats/client-http.c create mode 100644 src/stats/client-http.h create mode 100644 src/stats/client-reader.c create mode 100644 src/stats/client-reader.h create mode 100644 src/stats/client-writer.c create mode 100644 src/stats/client-writer.h create mode 100644 src/stats/event-exporter-fmt-json.c create mode 100644 src/stats/event-exporter-fmt-none.c create mode 100644 src/stats/event-exporter-fmt-tab-text.c create mode 100644 src/stats/event-exporter-fmt.c create mode 100644 src/stats/event-exporter-transport-drop.c create mode 100644 src/stats/event-exporter-transport-file.c create mode 100644 src/stats/event-exporter-transport-http-post.c create mode 100644 src/stats/event-exporter-transport-log.c create mode 100644 src/stats/event-exporter.c create mode 100644 src/stats/event-exporter.h create mode 100644 src/stats/main.c create mode 100644 src/stats/stats-common.h create mode 100644 src/stats/stats-event-category.c create mode 100644 src/stats/stats-event-category.h create mode 100644 src/stats/stats-metrics.c create mode 100644 src/stats/stats-metrics.h create mode 100644 src/stats/stats-service-openmetrics.c create mode 100644 src/stats/stats-service-private.h create mode 100644 src/stats/stats-service.c create mode 100644 src/stats/stats-service.h create mode 100644 src/stats/stats-settings.c create mode 100644 src/stats/stats-settings.h create mode 100644 src/stats/test-client-reader.c create mode 100644 src/stats/test-client-writer.c create mode 100644 src/stats/test-stats-common.c create mode 100644 src/stats/test-stats-common.h create mode 100644 src/stats/test-stats-metrics.c create mode 100644 src/submission-login/Makefile.am create mode 100644 src/submission-login/Makefile.in create mode 100644 src/submission-login/client-authenticate.c create mode 100644 src/submission-login/client-authenticate.h create mode 100644 src/submission-login/client.c create mode 100644 src/submission-login/client.h create mode 100644 src/submission-login/submission-login-settings.c create mode 100644 src/submission-login/submission-login-settings.h create mode 100644 src/submission-login/submission-proxy.c create mode 100644 src/submission-login/submission-proxy.h create mode 100644 src/submission/Makefile.am create mode 100644 src/submission/Makefile.in create mode 100644 src/submission/main.c create mode 100644 src/submission/submission-backend-relay.c create mode 100644 src/submission/submission-backend-relay.h create mode 100644 src/submission/submission-backend.c create mode 100644 src/submission/submission-backend.h create mode 100644 src/submission/submission-client.c create mode 100644 src/submission/submission-client.h create mode 100644 src/submission/submission-commands.c create mode 100644 src/submission/submission-commands.h create mode 100644 src/submission/submission-common.h create mode 100644 src/submission/submission-recipient.c create mode 100644 src/submission/submission-recipient.h create mode 100644 src/submission/submission-settings.c create mode 100644 src/submission/submission-settings.h create mode 100644 src/util/Makefile.am create mode 100644 src/util/Makefile.in create mode 100755 src/util/dovecot-sysreport create mode 100644 src/util/gdbhelper.c create mode 100644 src/util/health-check-settings.c create mode 100755 src/util/health-check.sh create mode 100644 src/util/rawlog.c create mode 100644 src/util/script-login.c create mode 100644 src/util/script.c create mode 100644 src/util/test-fs.c create mode 100644 stamp.h.in create mode 100644 update-version.sh create mode 100644 version diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..1d28737 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,26 @@ +Timo Sirainen + +Solar Designer (src/lib/md5.c, src/auth/passdb-pam.c) + +Andrey Panin (src/auth/mech-apop.c, src/auth/mech-login.c, + src/lib-ntlm/*, src/auth/mech-ntlm.c, src/auth/mech-rpa.c) + +Joshua Goodall (src/auth/mech-cram-md5.c, + src/doveadm/doveadm-pw.c) + +Jakob Hirsch (src/lib-sql/driver-sqlite.c) + +Jelmer Vernooij (src/auth/mech-gssapi.c) + +Vaclav Haisman (src/lib/ioloop-kqueue.c, + src/lib/ioloop-notify-kqueue.c) + +Portions Copyright (c) 2008 Apple Inc. All rights reserved. + +Blowfish code by Solar Designer + +SMTP fuzzer code by Catena cyber + +FTS flatcurve by Michael Slusarz + +Grepping 'Patch by' from ChangeLog shows up more people. diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..11291fc --- /dev/null +++ b/COPYING @@ -0,0 +1,76 @@ +See AUTHORS file for list of copyright holders. + +Everything in src/lib/, src/auth/, and src/lib-sql/ is under MIT license +(see COPYING.MIT) unless otherwise mentioned at the beginning of the file. + +Everything else is LGPLv2.1 (see COPYING.LGPL) unless otherwise mentioned +at the beginning of the file. + +Current exceptions are: + +src/lib/md5.c : Public Domain + +src/lib/sha1.c and sha2.c: + + Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. + Copyright (C) 2005, 2007 Olivier Gay + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the project nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +src/lib/UnicodeData.txt: + + Copyright (C) 1991-2007 Unicode, Inc. All rights reserved. Distributed + under the Terms of Use in http://www.unicode.org/copyright.html. + + Permission is hereby granted, free of charge, to any person obtaining a + copy of the Unicode data files and any associated documentation (the "Data + Files") or Unicode software and any associated documentation (the + "Software") to deal in the Data Files or Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, and/or sell copies of the Data Files or Software, and + to permit persons to whom the Data Files or Software are furnished to do + so, provided that (a) the above copyright notice(s) and this permission + notice appear with all copies of the Data Files or Software, (b) both the + above copyright notice(s) and this permission notice appear in associated + documentation, and (c) there is clear notice in each modified Data File or + in the Software as well as in the documentation associated with the Data + File(s) or Software that the data or software has been modified. + + THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY + KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF + THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS + INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR + CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THE DATA FILES OR SOFTWARE. + + Except as contained in this notice, the name of a copyright holder shall + not be used in advertising or otherwise to promote the sale, use or other + dealings in these Data Files or Software without prior written + authorization of the copyright holder. diff --git a/COPYING.LGPL b/COPYING.LGPL new file mode 100644 index 0000000..4362b49 --- /dev/null +++ b/COPYING.LGPL @@ -0,0 +1,502 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/COPYING.MIT b/COPYING.MIT new file mode 100644 index 0000000..0997c5d --- /dev/null +++ b/COPYING.MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..3371159 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,3 @@ +Please see https://github.com/dovecot/core/commits/ for history + +NEWS file has curated changes. diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..8190b74 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,39 @@ +Build Instructions +================== + +For most people, the usual: + +``` +./configure +make +sudo make install +``` + +is enough. This installs Dovecot under /usr/local. +When building from git, you need to run `./autogen.sh` first. + +If you have installed some libraries into locations which require special include or library paths, you can give them in CPPFLAGS and LDFLAGS environment variables. For example: + +`CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib ./configure` + +See `./configure --help` for a list of all available configure options. +See [Installation](https://doc.dovecot.org/latest/installation/installation.html) for more information. + +Running +======= + +Start with the minimal configuration installed in `/usr/local/etc/dovecot/`. + +Read through, and make needed modifications. + +Once everything is configured, start Dovecot by running "dovecot" binary. + +See the [Online configuration documentation](https://doc.dovecot.org/latest/core/config/overview.html) for more information. + +If you're in a hurry, go at least through [Quick Configuration](https://doc.dovecot.org/latest/core/config/guides/quick.html). + +SSL/TLS +======= + +Dovecot supports [OpenSSL](https://openssl-library.org/) for SSL/TLS +functionality. diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..ebf55dc --- /dev/null +++ b/Makefile.am @@ -0,0 +1,114 @@ +aclocaldir = $(datadir)/aclocal +ACLOCAL_AMFLAGS = -I m4 + +SUBDIRS = \ + . \ + src \ + doc + +dist_pkginclude_HEADERS = \ + dovecot-version.h + +EXTRA_DIST = \ + COPYING.LGPL \ + COPYING.MIT \ + ChangeLog \ + README.md \ + INSTALL.md \ + SECURITY.md \ + update-version.sh \ + run-test-valgrind.supp \ + dovecot.service.in \ + dovecot.socket \ + version \ + build-aux/git-abi-version-gen \ + build-aux/git-version-gen \ + $(conf_DATA) + +noinst_DATA = dovecot-config + +nodist_pkginclude_HEADERS = config.h + +distuninstallcheck_listfiles = find . -type f \! -name '*.conf' -print + +version: + $(AM_V_GEN)env VERSION=$(PACKAGE_VERSION) $(top_srcdir)/build-aux/git-version-gen > $@ + +aclocal_DATA = m4/dovecot.m4 + +dovecot-version.h: noop + $(AM_V_GEN)$(SHELL) $(top_srcdir)/update-version.sh $(top_srcdir) $(top_builddir) + +noop: + +dovecot-config: dovecot-config.in Makefile + $(AM_V_GEN)old=`pwd` && cd $(top_builddir) && abs_builddir=`pwd` && cd $$old && \ + cd $(top_srcdir) && abs_srcdir=`pwd` && cd $$old && \ + (echo "DOVECOT_INSTALLED=no"; cat dovecot-config.in | sed \ + -e "s|\$$(top_builddir)|$$abs_builddir|g" \ + -e "s|\$$(incdir)|$$abs_srcdir|g" \ + -e "s|\$$(LIBICONV)|$(LIBICONV)|g" \ + -e "s|\$$(MODULE_LIBS)|$(MODULE_LIBS)|g" \ + -e "s|^\(dovecot_pkgincludedir\)=|\1=$(pkgincludedir)|" \ + -e "s|^\(dovecot_pkglibdir\)=|\1=$(pkglibdir)|" \ + -e "s|^\(dovecot_pkglibexecdir\)=|\1=$(libexecdir)/dovecot|" \ + -e "s|^\(dovecot_docdir\)=|\1=$(docdir)|" \ + -e "s|^\(dovecot_moduledir\)=|\1=$(moduledir)|" \ + -e "s|^\(dovecot_statedir\)=|\1=$(statedir)|" \ + ) > dovecot-config + +%.service: %.service.in + $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' \ + -e 's,@bindir\@,$(bindir),g' \ + -e 's,@rundir\@,$(rundir),g' \ + -e 's,@systemdservicetype\@,$(systemdservicetype),g' \ + $< > $@ + +if WANT_SYSTEMD +systemdsystemunit_DATA = \ + dovecot.socket \ + dovecot.service +endif + +install-exec-hook: + $(mkdir_p) $(DESTDIR)$(pkglibdir); \ + grep -v '^LIBDOVECOT_.*_INCLUDE' dovecot-config | \ + grep -v '^LIBDOVECOT.*_DEPS' | sed \ + -e "s|^\(DOVECOT_INSTALLED\)=.*$$|\1=yes|" \ + -e "s|^\(LIBDOVECOT\)=.*$$|\1='-L$(pkglibdir) -ldovecot'|" \ + -e "s|^\(LIBDOVECOT_LOGIN\)=.*$$|\1='-ldovecot-login $(SSL_LIBS)'|" \ + -e "s|^\(LIBDOVECOT_SQL\)=.*$$|\1=-ldovecot-sql|" \ + -e "s|^\(LIBDOVECOT_LDAP\)=.*$$|\1=-ldovecot-ldap|" \ + -e "s|^\(LIBDOVECOT_COMPRESS\)=.*$$|\1=-ldovecot-compression|" \ + -e "s|^\(LIBDOVECOT_DSYNC\)=.*$$|\1=-ldovecot-dsync|" \ + -e "s|^\(LIBDOVECOT_LDA\)=.*$$|\1=-ldovecot-lda|" \ + -e "s|^\(LIBDOVECOT_LIBLANG\)=.*$$|\1=-ldovecot-language|" \ + -e "s|^\(LIBDOVECOT_LUA\)=.*$$|\1=-ldovecot-lua|" \ + -e "s|^\(LIBDOVECOT_STORAGE\)=.*$$|\1='-ldovecot-storage $(LINKED_STORAGE_LDADD)'|" \ + -e "s|^\(LIBDOVECOT_OPENSSL\)=.*$$|\1=-lssl_iostream_openssl|" \ + -e "s|^\(LIBDOVECOT_INCLUDE\)=.*$$|\1=-I$(pkgincludedir)|" \ + > $(DESTDIR)$(pkglibdir)/dovecot-config + +uninstall-hook: + rm $(DESTDIR)$(pkglibdir)/dovecot-config + +if WANT_SYSTEMD +CLEANFILES = dovecot.service +endif + +DISTCLEANFILES = \ + $(top_builddir)/dovecot-version.h \ + $(top_builddir)/dovecot-config \ + $(top_builddir)/run-test.sh + +distcheck-hook: + if which scan-build > /dev/null; then \ + cd $(distdir)/_build; \ + scan-build -o scan-reports ../configure --with-ldap=auto --with-pgsql=auto --with-mysql=auto --with-sqlite=auto --with-solr=auto --with-cassandra=auto --with-lua=auto --with-gssapi=auto --with-libwrap=auto --enable-static-checker; \ + rm -rf scan-reports; \ + scan-build -o scan-reports make 2>&1 || exit 1; \ + if ! rmdir scan-reports 2>/dev/null; then \ + exit 1; \ + fi; \ + make distclean; \ + fi diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..8f1a346 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,1233 @@ +# Makefile.in generated by automake 1.16.3 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2020 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ac_typeof.m4 \ + $(top_srcdir)/m4/arc4random.m4 $(top_srcdir)/m4/blockdev.m4 \ + $(top_srcdir)/m4/crypt.m4 $(top_srcdir)/m4/crypt_xpg6.m4 \ + $(top_srcdir)/m4/dbqlk.m4 $(top_srcdir)/m4/dirent_dtype.m4 \ + $(top_srcdir)/m4/dovecot.m4 $(top_srcdir)/m4/dovecot_pro.m4 \ + $(top_srcdir)/m4/faccessat2.m4 $(top_srcdir)/m4/fd_passing.m4 \ + $(top_srcdir)/m4/glibc.m4 $(top_srcdir)/m4/gmtime_max.m4 \ + $(top_srcdir)/m4/gmtime_tm_gmtoff.m4 \ + $(top_srcdir)/m4/ioloop.m4 $(top_srcdir)/m4/iovec.m4 \ + $(top_srcdir)/m4/libcap.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/linux_mremap.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/mmap_write.m4 \ + $(top_srcdir)/m4/mntctl.m4 $(top_srcdir)/m4/modules.m4 \ + $(top_srcdir)/m4/notify.m4 $(top_srcdir)/m4/nsl.m4 \ + $(top_srcdir)/m4/off_t_max.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/m4/pr_set_dumpable.m4 \ + $(top_srcdir)/m4/q_quotactl.m4 $(top_srcdir)/m4/quota.m4 \ + $(top_srcdir)/m4/random.m4 $(top_srcdir)/m4/rlimit.m4 \ + $(top_srcdir)/m4/sched.m4 $(top_srcdir)/m4/sendfile.m4 \ + $(top_srcdir)/m4/size_t_signed.m4 \ + $(top_srcdir)/m4/sockpeercred.m4 $(top_srcdir)/m4/sql.m4 \ + $(top_srcdir)/m4/ssl.m4 $(top_srcdir)/m4/st_tim.m4 \ + $(top_srcdir)/m4/test_with.m4 $(top_srcdir)/m4/time_t.m4 \ + $(top_srcdir)/m4/typeof.m4 $(top_srcdir)/m4/uoff_t_max.m4 \ + $(top_srcdir)/m4/vararg.m4 $(top_srcdir)/m4/want_apparmor.m4 \ + $(top_srcdir)/m4/want_bsdauth.m4 \ + $(top_srcdir)/m4/want_bzlib.m4 \ + $(top_srcdir)/m4/want_cassandra.m4 \ + $(top_srcdir)/m4/want_cdb.m4 \ + $(top_srcdir)/m4/want_flatcurve.m4 \ + $(top_srcdir)/m4/want_gssapi.m4 $(top_srcdir)/m4/want_icu.m4 \ + $(top_srcdir)/m4/want_ldap.m4 $(top_srcdir)/m4/want_lua.m4 \ + $(top_srcdir)/m4/want_lz4.m4 $(top_srcdir)/m4/want_mysql.m4 \ + $(top_srcdir)/m4/want_pam.m4 $(top_srcdir)/m4/want_passwd.m4 \ + $(top_srcdir)/m4/want_pgsql.m4 \ + $(top_srcdir)/m4/want_prefetch.m4 \ + $(top_srcdir)/m4/want_sodium.m4 $(top_srcdir)/m4/want_solr.m4 \ + $(top_srcdir)/m4/want_sqlite.m4 \ + $(top_srcdir)/m4/want_stemmer.m4 \ + $(top_srcdir)/m4/want_systemd.m4 \ + $(top_srcdir)/m4/want_textcat.m4 \ + $(top_srcdir)/m4/want_unwind.m4 $(top_srcdir)/m4/want_zstd.m4 \ + $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ + $(am__configure_deps) $(dist_pkginclude_HEADERS) \ + $(am__DIST_COMMON) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = stamp.h build-aux/run-test.sh dovecot-config.in +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(aclocaldir)" \ + "$(DESTDIR)$(systemdsystemunitdir)" \ + "$(DESTDIR)$(pkgincludedir)" "$(DESTDIR)$(pkgincludedir)" +DATA = $(aclocal_DATA) $(noinst_DATA) $(systemdsystemunit_DATA) +HEADERS = $(dist_pkginclude_HEADERS) $(nodist_pkginclude_HEADERS) +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + cscope distdir distdir-am dist dist-all distcheck +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \ + config.h.in +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +CSCOPE = cscope +DIST_SUBDIRS = $(SUBDIRS) +am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ + $(srcdir)/dovecot-config.in.in $(srcdir)/stamp.h.in \ + $(top_srcdir)/build-aux/compile \ + $(top_srcdir)/build-aux/config.guess \ + $(top_srcdir)/build-aux/config.rpath \ + $(top_srcdir)/build-aux/config.sub \ + $(top_srcdir)/build-aux/install-sh \ + $(top_srcdir)/build-aux/ltmain.sh \ + $(top_srcdir)/build-aux/missing \ + $(top_srcdir)/build-aux/run-test.sh.in AUTHORS COPYING \ + ChangeLog NEWS TODO build-aux/compile build-aux/config.guess \ + build-aux/config.rpath build-aux/config.sub \ + build-aux/install-sh build-aux/ltmain.sh build-aux/missing +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__post_remove_distdir = $(am__remove_distdir) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +DIST_TARGETS = dist-gzip +# Exists only to be overridden by the user if desired. +AM_DISTCHECK_DVI_TARGET = dvi +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +ACLOCAL_AMFLAGS = -I m4 +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPARMOR_LIBS = @APPARMOR_LIBS@ +AR = @AR@ +AR_FLAGS = @AR_FLAGS@ +AUTH_CFLAGS = @AUTH_CFLAGS@ +AUTH_LIBS = @AUTH_LIBS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BINARY_CFLAGS = @BINARY_CFLAGS@ +BINARY_LDFLAGS = @BINARY_LDFLAGS@ +BISON = @BISON@ +CASSANDRA_CFLAGS = @CASSANDRA_CFLAGS@ +CASSANDRA_LIBS = @CASSANDRA_LIBS@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CDB_LIBS = @CDB_LIBS@ +CFLAGS = @CFLAGS@ +COMPRESS_LIBS = @COMPRESS_LIBS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CRYPT_LIBS = @CRYPT_LIBS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DICT_LIBS = @DICT_LIBS@ +DLLIB = @DLLIB@ +DLLTOOL = @DLLTOOL@ +DOVECOT_ASSET_URL = @DOVECOT_ASSET_URL@ +DOVECOT_ASSET_VERSION = @DOVECOT_ASSET_VERSION@ +DOVECOT_CONFIG_VERSION = @DOVECOT_CONFIG_VERSION@ +DOVECOT_HAVE_MAIL_UTF8 = @DOVECOT_HAVE_MAIL_UTF8@ +DOVECOT_PRO_BUILD = @DOVECOT_PRO_BUILD@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXPAT_CFLAGS = @EXPAT_CFLAGS@ +EXPAT_LIBS = @EXPAT_LIBS@ +FGREP = @FGREP@ +FLEX = @FLEX@ +FUZZER_CPPFLAGS = @FUZZER_CPPFLAGS@ +FUZZER_LDFLAGS = @FUZZER_LDFLAGS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +KRB5CONFIG = @KRB5CONFIG@ +KRB5_CFLAGS = @KRB5_CFLAGS@ +KRB5_LIBS = @KRB5_LIBS@ +LD = @LD@ +LDAP_CFLAGS = @LDAP_CFLAGS@ +LDAP_LIBS = @LDAP_LIBS@ +LDFLAGS = @LDFLAGS@ +LD_NO_WHOLE_ARCHIVE = @LD_NO_WHOLE_ARCHIVE@ +LD_WHOLE_ARCHIVE = @LD_WHOLE_ARCHIVE@ +LIBCAP = @LIBCAP@ +LIBDOVECOT = @LIBDOVECOT@ +LIBDOVECOT_COMPRESS = @LIBDOVECOT_COMPRESS@ +LIBDOVECOT_DEPS = @LIBDOVECOT_DEPS@ +LIBDOVECOT_DSYNC = @LIBDOVECOT_DSYNC@ +LIBDOVECOT_LA_LIBS = @LIBDOVECOT_LA_LIBS@ +LIBDOVECOT_LDA = @LIBDOVECOT_LDA@ +LIBDOVECOT_LDAP = @LIBDOVECOT_LDAP@ +LIBDOVECOT_LIBLANG = @LIBDOVECOT_LIBLANG@ +LIBDOVECOT_LIBLANG_DEPS = @LIBDOVECOT_LIBLANG_DEPS@ +LIBDOVECOT_LOGIN = @LIBDOVECOT_LOGIN@ +LIBDOVECOT_LUA = @LIBDOVECOT_LUA@ +LIBDOVECOT_LUA_DEPS = @LIBDOVECOT_LUA_DEPS@ +LIBDOVECOT_OPENSSL = @LIBDOVECOT_OPENSSL@ +LIBDOVECOT_OPENSSL_DEPS = @LIBDOVECOT_OPENSSL_DEPS@ +LIBDOVECOT_SQL = @LIBDOVECOT_SQL@ +LIBDOVECOT_STORAGE = @LIBDOVECOT_STORAGE@ +LIBDOVECOT_STORAGE_DEPS = @LIBDOVECOT_STORAGE_DEPS@ +LIBEXTTEXTCAT_CFLAGS = @LIBEXTTEXTCAT_CFLAGS@ +LIBEXTTEXTCAT_LIBS = @LIBEXTTEXTCAT_LIBS@ +LIBICONV = @LIBICONV@ +LIBICU_CFLAGS = @LIBICU_CFLAGS@ +LIBICU_LIBS = @LIBICU_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBSODIUM_CFLAGS = @LIBSODIUM_CFLAGS@ +LIBSODIUM_LIBS = @LIBSODIUM_LIBS@ +LIBTIRPC_CFLAGS = @LIBTIRPC_CFLAGS@ +LIBTIRPC_LIBS = @LIBTIRPC_LIBS@ +LIBTOOL = @LIBTOOL@ +LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@ +LIBUNWIND_LIBS = @LIBUNWIND_LIBS@ +LINKED_STORAGE_LDADD = @LINKED_STORAGE_LDADD@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +LUA_CFLAGS = @LUA_CFLAGS@ +LUA_LIBS = @LUA_LIBS@ +LZ4_CFLAGS = @LZ4_CFLAGS@ +LZ4_LIBS = @LZ4_LIBS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MARIADB_CFLAGS = @MARIADB_CFLAGS@ +MARIADB_LIBS = @MARIADB_LIBS@ +MKDIR_P = @MKDIR_P@ +MODULE_LIBS = @MODULE_LIBS@ +MODULE_SUFFIX = @MODULE_SUFFIX@ +MYSQL_CFLAGS = @MYSQL_CFLAGS@ +MYSQL_LIBS = @MYSQL_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +NOPLUGIN_LDFLAGS = @NOPLUGIN_LDFLAGS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PGSQL_CFLAGS = @PGSQL_CFLAGS@ +PGSQL_LIBS = @PGSQL_LIBS@ +PIE_CFLAGS = @PIE_CFLAGS@ +PIE_LDFLAGS = @PIE_LDFLAGS@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +QUOTA_LIBS = @QUOTA_LIBS@ +RANLIB = @RANLIB@ +RELRO_LDFLAGS = @RELRO_LDFLAGS@ +RPCGEN = @RPCGEN@ +RUN_TEST = @RUN_TEST@ +SED = @SED@ +SETTING_FILES = @SETTING_FILES@ +SETTING_LINKED_FILES = @SETTING_LINKED_FILES@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SQLITE_CFLAGS = @SQLITE_CFLAGS@ +SQLITE_LIBS = @SQLITE_LIBS@ +SQL_CFLAGS = @SQL_CFLAGS@ +SQL_LIBS = @SQL_LIBS@ +SSL_CFLAGS = @SSL_CFLAGS@ +SSL_LIBS = @SSL_LIBS@ +STRIP = @STRIP@ +SYSTEMD_CFLAGS = @SYSTEMD_CFLAGS@ +SYSTEMD_LIBS = @SYSTEMD_LIBS@ +VALGRIND = @VALGRIND@ +VERSION = @VERSION@ +WGET = @WGET@ +XAPIAN_CFLAGS = @XAPIAN_CFLAGS@ +XAPIAN_LIBS = @XAPIAN_LIBS@ +ZLIB_CFLAGS = @ZLIB_CFLAGS@ +ZLIB_LIBS = @ZLIB_LIBS@ +ZSTD_CFLAGS = @ZSTD_CFLAGS@ +ZSTD_LIBS = @ZSTD_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +dict_drivers = @dict_drivers@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +moduledir = @moduledir@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +rundir = @rundir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sql_drivers = @sql_drivers@ +srcdir = @srcdir@ +ssldir = @ssldir@ +statedir = @statedir@ +sysconfdir = @sysconfdir@ +systemdservicetype = @systemdservicetype@ +systemdsystemunitdir = @systemdsystemunitdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +aclocaldir = $(datadir)/aclocal +SUBDIRS = \ + . \ + src \ + doc + +dist_pkginclude_HEADERS = \ + dovecot-version.h + +EXTRA_DIST = \ + COPYING.LGPL \ + COPYING.MIT \ + ChangeLog \ + README.md \ + INSTALL.md \ + SECURITY.md \ + update-version.sh \ + run-test-valgrind.supp \ + dovecot.service.in \ + dovecot.socket \ + version \ + build-aux/git-abi-version-gen \ + build-aux/git-version-gen \ + $(conf_DATA) + +noinst_DATA = dovecot-config +nodist_pkginclude_HEADERS = config.h +distuninstallcheck_listfiles = find . -type f \! -name '*.conf' -print +aclocal_DATA = m4/dovecot.m4 +@WANT_SYSTEMD_TRUE@systemdsystemunit_DATA = \ +@WANT_SYSTEMD_TRUE@ dovecot.socket \ +@WANT_SYSTEMD_TRUE@ dovecot.service + +@WANT_SYSTEMD_TRUE@CLEANFILES = dovecot.service +DISTCLEANFILES = \ + $(top_builddir)/dovecot-version.h \ + $(top_builddir)/dovecot-config \ + $(top_builddir)/run-test.sh + +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 + @test -f $@ || rm -f stamp-h1 + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 +stamp.h: $(top_builddir)/config.status $(srcdir)/stamp.h.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +build-aux/run-test.sh: $(top_builddir)/config.status $(top_srcdir)/build-aux/run-test.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +dovecot-config.in: $(top_builddir)/config.status $(srcdir)/dovecot-config.in.in + cd $(top_builddir) && $(SHELL) ./config.status $@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool config.lt +install-aclocalDATA: $(aclocal_DATA) + @$(NORMAL_INSTALL) + @list='$(aclocal_DATA)'; test -n "$(aclocaldir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(aclocaldir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(aclocaldir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(aclocaldir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(aclocaldir)" || exit $$?; \ + done + +uninstall-aclocalDATA: + @$(NORMAL_UNINSTALL) + @list='$(aclocal_DATA)'; test -n "$(aclocaldir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(aclocaldir)'; $(am__uninstall_files_from_dir) +install-systemdsystemunitDATA: $(systemdsystemunit_DATA) + @$(NORMAL_INSTALL) + @list='$(systemdsystemunit_DATA)'; test -n "$(systemdsystemunitdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(systemdsystemunitdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(systemdsystemunitdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(systemdsystemunitdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(systemdsystemunitdir)" || exit $$?; \ + done + +uninstall-systemdsystemunitDATA: + @$(NORMAL_UNINSTALL) + @list='$(systemdsystemunit_DATA)'; test -n "$(systemdsystemunitdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(systemdsystemunitdir)'; $(am__uninstall_files_from_dir) +install-dist_pkgincludeHEADERS: $(dist_pkginclude_HEADERS) + @$(NORMAL_INSTALL) + @list='$(dist_pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \ + done + +uninstall-dist_pkgincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(dist_pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir) +install-nodist_pkgincludeHEADERS: $(nodist_pkginclude_HEADERS) + @$(NORMAL_INSTALL) + @list='$(nodist_pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \ + done + +uninstall-nodist_pkgincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(nodist_pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir) + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscope: cscope.files + test ! -s cscope.files \ + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) +clean-cscope: + -rm -f cscope.files +cscope.files: clean-cscope cscopelist +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files + +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz + $(am__post_remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__post_remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__post_remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__post_remove_distdir) + +dist-zstd: distdir + tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst + $(am__post_remove_distdir) + +dist-tarZ: distdir + @echo WARNING: "Support for distribution archives compressed with" \ + "legacy program 'compress' is deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__post_remove_distdir) + +dist-shar: distdir + @echo WARNING: "Support for shar distribution archives is" \ + "deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz + $(am__post_remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__post_remove_distdir) + +dist dist-all: + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' + $(am__post_remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + *.tar.zst*) \ + zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ + esac + chmod -R a-w $(distdir) + chmod u+w $(distdir) + mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && $(MAKE) $(AM_MAKEFLAGS) distcheck-hook \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build/sub \ + && ../../configure \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + --srcdir=../.. --prefix="$$dc_install_base" \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__post_remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile $(DATA) $(HEADERS) config.h +installdirs: installdirs-recursive +installdirs-am: + for dir in "$(DESTDIR)$(aclocaldir)" "$(DESTDIR)$(systemdsystemunitdir)" "$(DESTDIR)$(pkgincludedir)" "$(DESTDIR)$(pkgincludedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: install-aclocalDATA install-dist_pkgincludeHEADERS \ + install-nodist_pkgincludeHEADERS install-systemdsystemunitDATA + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-exec-hook +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-aclocalDATA uninstall-dist_pkgincludeHEADERS \ + uninstall-nodist_pkgincludeHEADERS \ + uninstall-systemdsystemunitDATA + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) uninstall-hook +.MAKE: $(am__recursive_targets) all install-am install-exec-am \ + install-strip uninstall-am + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ + am--refresh check check-am clean clean-cscope clean-generic \ + clean-libtool cscope cscopelist-am ctags ctags-am dist \ + dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ + dist-xz dist-zip dist-zstd distcheck distclean \ + distclean-generic distclean-hdr distclean-libtool \ + distclean-tags distcleancheck distdir distuninstallcheck dvi \ + dvi-am html html-am info info-am install install-aclocalDATA \ + install-am install-data install-data-am \ + install-dist_pkgincludeHEADERS install-dvi install-dvi-am \ + install-exec install-exec-am install-exec-hook install-html \ + install-html-am install-info install-info-am install-man \ + install-nodist_pkgincludeHEADERS install-pdf install-pdf-am \ + install-ps install-ps-am install-strip \ + install-systemdsystemunitDATA installcheck installcheck-am \ + installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-aclocalDATA uninstall-am \ + uninstall-dist_pkgincludeHEADERS uninstall-hook \ + uninstall-nodist_pkgincludeHEADERS \ + uninstall-systemdsystemunitDATA + +.PRECIOUS: Makefile + + +version: + $(AM_V_GEN)env VERSION=$(PACKAGE_VERSION) $(top_srcdir)/build-aux/git-version-gen > $@ + +dovecot-version.h: noop + $(AM_V_GEN)$(SHELL) $(top_srcdir)/update-version.sh $(top_srcdir) $(top_builddir) + +noop: + +dovecot-config: dovecot-config.in Makefile + $(AM_V_GEN)old=`pwd` && cd $(top_builddir) && abs_builddir=`pwd` && cd $$old && \ + cd $(top_srcdir) && abs_srcdir=`pwd` && cd $$old && \ + (echo "DOVECOT_INSTALLED=no"; cat dovecot-config.in | sed \ + -e "s|\$$(top_builddir)|$$abs_builddir|g" \ + -e "s|\$$(incdir)|$$abs_srcdir|g" \ + -e "s|\$$(LIBICONV)|$(LIBICONV)|g" \ + -e "s|\$$(MODULE_LIBS)|$(MODULE_LIBS)|g" \ + -e "s|^\(dovecot_pkgincludedir\)=|\1=$(pkgincludedir)|" \ + -e "s|^\(dovecot_pkglibdir\)=|\1=$(pkglibdir)|" \ + -e "s|^\(dovecot_pkglibexecdir\)=|\1=$(libexecdir)/dovecot|" \ + -e "s|^\(dovecot_docdir\)=|\1=$(docdir)|" \ + -e "s|^\(dovecot_moduledir\)=|\1=$(moduledir)|" \ + -e "s|^\(dovecot_statedir\)=|\1=$(statedir)|" \ + ) > dovecot-config + +%.service: %.service.in + $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' \ + -e 's,@bindir\@,$(bindir),g' \ + -e 's,@rundir\@,$(rundir),g' \ + -e 's,@systemdservicetype\@,$(systemdservicetype),g' \ + $< > $@ + +install-exec-hook: + $(mkdir_p) $(DESTDIR)$(pkglibdir); \ + grep -v '^LIBDOVECOT_.*_INCLUDE' dovecot-config | \ + grep -v '^LIBDOVECOT.*_DEPS' | sed \ + -e "s|^\(DOVECOT_INSTALLED\)=.*$$|\1=yes|" \ + -e "s|^\(LIBDOVECOT\)=.*$$|\1='-L$(pkglibdir) -ldovecot'|" \ + -e "s|^\(LIBDOVECOT_LOGIN\)=.*$$|\1='-ldovecot-login $(SSL_LIBS)'|" \ + -e "s|^\(LIBDOVECOT_SQL\)=.*$$|\1=-ldovecot-sql|" \ + -e "s|^\(LIBDOVECOT_LDAP\)=.*$$|\1=-ldovecot-ldap|" \ + -e "s|^\(LIBDOVECOT_COMPRESS\)=.*$$|\1=-ldovecot-compression|" \ + -e "s|^\(LIBDOVECOT_DSYNC\)=.*$$|\1=-ldovecot-dsync|" \ + -e "s|^\(LIBDOVECOT_LDA\)=.*$$|\1=-ldovecot-lda|" \ + -e "s|^\(LIBDOVECOT_LIBLANG\)=.*$$|\1=-ldovecot-language|" \ + -e "s|^\(LIBDOVECOT_LUA\)=.*$$|\1=-ldovecot-lua|" \ + -e "s|^\(LIBDOVECOT_STORAGE\)=.*$$|\1='-ldovecot-storage $(LINKED_STORAGE_LDADD)'|" \ + -e "s|^\(LIBDOVECOT_OPENSSL\)=.*$$|\1=-lssl_iostream_openssl|" \ + -e "s|^\(LIBDOVECOT_INCLUDE\)=.*$$|\1=-I$(pkgincludedir)|" \ + > $(DESTDIR)$(pkglibdir)/dovecot-config + +uninstall-hook: + rm $(DESTDIR)$(pkglibdir)/dovecot-config + +distcheck-hook: + if which scan-build > /dev/null; then \ + cd $(distdir)/_build; \ + scan-build -o scan-reports ../configure --with-ldap=auto --with-pgsql=auto --with-mysql=auto --with-sqlite=auto --with-solr=auto --with-cassandra=auto --with-lua=auto --with-gssapi=auto --with-libwrap=auto --enable-static-checker; \ + rm -rf scan-reports; \ + scan-build -o scan-reports make 2>&1 || exit 1; \ + if ! rmdir scan-reports 2>/dev/null; then \ + exit 1; \ + fi; \ + make distclean; \ + fi + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..88e2a26 --- /dev/null +++ b/NEWS @@ -0,0 +1,5930 @@ +v2.4.1 2025-03-28 Aki Tuomi + + * auth: Change unix_listener/auth-userdb/group = $SET:default_internal_group + This change needs dovecot_config_version=2.4.1. + * auth: lua - Remove support for single string result. + * imap: Unconditionally advertise SPECIAL-USE capability. + * lib-dcrypt: Install dcrypt_openssl.so into dovecot modules directory. + * lib-master: For glibc, default MALLOC_MMAP_THRESHOLD_=131072. + * lib-storage: Change default mail_cache_fields to: + hdr.date hdr.subject hdr.from hdr.sender hdr.reply-to hdr.to + hdr.cc hdr.bcc hdr.in-reply-to hdr.message-id + date.received size.virtual imap.bodystructure mime.parts hdr.references + hdr.importance hdr.x-priority hdr.x-open-xchange-share-url + pop3.uidl pop3.order. This change needs dovecot_config_version=2.4.1. + * lib-var-expand: Use moduledir instead of pkglibdir for crypt. + * lmtp: Change the default lmtp_user_concurrency_limit to 10. + This change needs dovecot_config_version=2.4.1. + * lmtp: Change the default service_restart_request_count to 1. + This change needs dovecot_config_version=2.4.1. + + auth: Allow configuring passdb/userdb sql to use auth-workers. + + config: Add default group @mailbox_defaults = english. + + config: Improve "Unknown setting" error with more details and + suggestions. + + doveconf: Add -U parameter to ignore unknown settings in config file. + + fts-flatcurve: Support lock files in VOLATILEDIR. + + imap-acl: Add support for the IMAP LIST-MYRIGHTS capability (RFC 8440). + + imap-client: Support ANONYMOUS authentication. + + imap: Implement support for the REPLACE capability. + - auth: ldap - Passdb fields were ignored with + passdb_ldap_bind_userdn=yes. + - auth: lua - Fix error result handling in lua passdb/userdb. + - auth: oauth2 - When building oauth2 failure reply, memory would leak. + - config: local_name handling would work wrong with multiple names and + wildcards. + - fts-flatcurve: A potential crash could occur when searching virtual + mailboxes. + Fixes: Panic: file fts-search.c: line 87 (level_scores_add_vuids): + assertion failed: (array_count(&vuids_arr) == array_count(&br->scores)) + - fts-flatcurve: Maybe queries were done wrong. + - fts-flatcurve: Non-selectable mailboxes were not ignored when doing + optimize/rescan. + - fts-flatcurve: Signal 11 crash could happen with fts rescan. + - fts: Fix crash caused by event object lifecycle mishandling. + - imap-hibernate: Client counters would get reset on unhibernation, + affecting imap_logout_format variables. + - imap: Crash would occur with Maildir when trying to send INPROGRESS + during mailbox syncing. + - ldap: Dovecot could not be compiled without LDAP. + - lib-dcrypt: Output stream encryption can cause assert crash if + attempting to encrypt over 64 GiB of data with GCM. This is still not + supported with GCM, but it fails better. + - lib-http: HTTP client context memory usage was increasing. + - lib-http: Pipeline corruption could happen after 100 Continue response. + - lib-settings: Variable expansion initialization could crash with + Panic: file settings.c: line 1560 (settings_var_expand_init_add): + assertion failed: (I_MAX(num_tables, num_provs) == num_ctx) + - lib-smtp: Pipelining initial SASL response after AUTH was broken. + - lib-var-expand: If filter failed, memory leak would occur. + - lib-var-expand: Older bison versions did not have error symbol for + handling causing unexpected behaviour on the parser on error conditions. + - quota: Quota calculations had minor bugs causing small errors. + +v2.4.0 2025-01-24 Aki Tuomi + + * config: dovecot_config_version must be the first non-comment + line in configuration file. + * config: dovecot_storage_version must be in the configuration + file. + * config: Many configuration options have changed so old configuration + files do not work without rewrite. See + https://doc.dovecot.org/main/installation/upgrade/2.3-to-2.4.html + * config: New variable expansion syntax has been introduced, see + https://doc.dovecot.org/main/core/settings/variables.html + * config: Some default settings have changed. + * config: plugin {} section has been removed. + * *-login: With ssl=required, connections from login_trusted_networks + are now also required to be SSL/TLS encrypted. + * acl: Use ACL settings instead of Global ACL Directories. + * auth-worker: auth_worker_max_count is replaced with + service auth-worker { process_limit }. + * auth: Weak password schemes are disabled by default, use + auth_allow_weak_schemes to enable them. + * auth_debug, mail_debug: Use log_debug filter instead. + * config: All sections require a name, for example passdb/userdb: + passdb static { + password=secret + } + * db2: Remove Berkeley DB support. + * dict-memcached: This is removed, use Redis instead. + * director: Feature has been removed. See potential replacement at + https://github.com/dovecot/tools/blob/main/director.lua + * doveadm: USER environment variable is only supported with + --no-userdb-lookup. One of -u, -F or -A must be used + otherwise. + * doveconf: Option -n is now default when running doveconf. + * dsync: Use doveadm sync instead, legacy symlink has been removed. + * fs-sis: Feature is now deprecated and has been made read-only. + It will be removed in future release. + * fts-lucene, fts-squat: These have been removed, use fts-flatcurve or + fts-solr instead. + * imap-login: IMAP compression is now handled in proxies. + * imap_quota: SETQUOTA / quota_set has been removed. + * imap_zlib: This plugin is no longer needed, it's always enabled. + * imapc: All features are enabled by default, imapc_features can be used + to explicitly disable features that are not wanted. + * lib-storage: mbox driver is now frozen. + * mail_compress: XZ and LZMA algorithm support has been removed. + * mailbox-alias: Plugin has been removed. + * old_stats, auth_stats: These have been removed. + * openssl: Minimum supported version of OpenSSL is now 1.1.1. + * openssl: Add support for OpenSSL 3.x + * quota-dict, quota-dirsize: These have been removed, use quota-count + instead. You can use quota_clone to copy quota usage to some database. + * replicator: Feature has been removed. Use NFS or some other shared + filesystem instead, or run doveadm sync in crontab. + * stats: The bytes_in and bytes_out field in several events have been + renamed as net_in_bytes and net_out_bytes. + * zlib: Renamed to mail_compress plugin. + + Experimental SMTPUTF8 and IMAP UTF8=ACCEPT support has been added. + Needs --enable-experimental-mail-utf8 configure option and + mail_utf8_extensions=yes setting. + + Long running mail commands can be aborted with Ctrl-C / doveadm kick. + + auth: LDAP driver now supports multi-value attributes. + + auth: Add support for SCRAM-SHA-1-PLUS and SCRAM-SHA-256-PLUS. + + auth: Add support for TLS channel binding. + + auth: Support sending JA3 hash to policy server. + + configure: Detect latest Lua version. + + *-login: Support for TLS Server Name has been improved to allow pre-login + settings. For example capabilities to be changed based on TLS Server Name. + + *-login: Support for TLS ALPN has been added, connections with mismatching + application are now refused. Missing ALPN is accepted. + + fts-flatcurve: New Xapian based FTS plugin has been added. + + imap: Support for INPROGRESS untagged messages as per RFC 9585. + + lib-lua: Expose Dovecot DNS client. + + lib-lua: Expose Dovecot HTTP client. + + lib-sasl: Support SCRAM-SHA mechanisms. + + lmtp: SNI support has been added which allows settings to be applied + based on TLS Server Name. + + sqlite: Support WAL mode. + + stats: Submetric name size has been increased. + + submission: Add submission_add_received_header setting to protect + sender identity by suppressing the Received: header. + - Many bugs have been fixed. + +v2.3.21.1 2024-08-14 Aki Tuomi< aki.tuomi@open-xchange.com> + + - CVE-2024-23184: A large number of address headers in email resulted + in excessive CPU usage. + - CVE-2024-23185: Abnormally large email headers are now truncated or + discarded, with a limit of 10MB on a single header and 50MB for all + the headers of all the parts of an email. + - oauth2: Dovecot would send client_id and client_secret as POST parameters + to introspection server. These need to be optionally in Basic auth + instead as required by OIDC specification. + - oauth2: JWT key type check was too strict. + - oauth2: JWT token audience was not validated against client_id as + required by OIDC specification. + - oauth2: XOAUTH2 and OAUTHBEARER mechanisms were not giving out + protocol specific error message on all errors. This broke OIDC discovery. + - oauth2: JWT aud validation was not performed if aud was missing + from token, but was configured on Dovecot. + +v2.3.21 2023-09-15 Aki Tuomi + + * lib-oauth2: Allow JWT tokens to be validated with missing typ field. + The typ field is left out by some key issuers to conserve space, + notably kubernetes. Now missing typ is tolerated, but if present, it + still must be "jwt". + + auth: Auth passdb and userdb reply can contain "event_=value" + which will be added to login event and mail user event respectively. + + lib-master: Set process title during various initialization stages to + clearly describe what the process is waiting on. + + lib-storage: The mail_temp_scan_interval is now fuzzed incrementing it + by 0..30% based on username's hash to reduce the chance of load spikes. + + lib-storage: The temp file scan has been moved from the open of the + mailbox to the close, to reduce the latency perceived by users. + + stats: If metric has fields specified, all these fields are + exported as counters to prometheus exposition. + See https://doc.dovecot.org/configuration_manual/stats/openmetrics/. + - *-login: Processes might have crashed when a SSL connection disconnects + uncleanly. + - acl: When plugin was loaded \HasChildren and \HasNoChildren flags + were calculated incorrectly for mailboxes containing '*' and '%' + in their names. + - auth: Crash occured if a connection to PostgreSQL database server + failed during startup. + - auth: Logins with invalid passwords (e.g. unknown scheme) in passdb + were failing with "password mismatch" instead of "internal error". + - auth: XOAUTH2 and OAUTHBEARER mechanisms were not giving out protocol + specific error message on all errors. This especially broke OIDC + discovery. + - dbox: When last_temp_file_scan header wasn't set (especially after + dsync migration), the next mailbox open always triggers the temp file + scan. This could have caused a load spike after migrations. Fixed by + using the mailbox directory's atime when the header isn't set, which + usually moves the scan time into the future. + - dict-redis: A crash would occur on transaction rollback. + - dsync: Infinite loop causing out of memory would occur when handling + mailbox deletion from remote end and hierarchy separators would differ. + - dsync: Incremental dsync failed for folder names ending with '%', + unless BROKENCHAR was set. Also folder names with '%' elsewhere in + them caused each incremental dsync to unnecessarily rename the folder + to a temporary name and back. v2.3.19 regression. + - imap-hibernate: If an IMAP client unhibernation timed out with + "(version received)", the unhibernation could still have successfully + finished later on and continued working normally. This was rather + confusing, because imap-hibernate already logged that the client got + disconnected. Avoid this by forcing the connection to shutdown on + unhibernation timeout. + - imapc: Crashed when a folder mapped through the virtual plugin + disappears from the storage. + - imapc: EXPUNGE, EXISTS or FETCH replies from a server for a previously + selected mailbox could have been processed as if they belonged to the + new mailbox currently being selected. This could have caused warnings. + - lib-http: Dovecot HTTP server (doveadm, stats/openmetrics) may have + disconnected HTTP clients before the response is fully sent. This + happened only on busy servers where kernel's socket buffers were + rather full. + - lib-http: Fixed a potential crash on http-server if a client + disconnected early. v2.3.18 regression. + - lib-index: Index file corruption could have caused a crash. Fixes: + Panic: file mail-transaction-log-view.c: line 165 (mail_transaction_log_view_set): + assertion failed: (min_file_seq <= max_file_seq). + - lib-index: Purging an existing >1GB cache file can crash. Now cache + files still above 1GB after purging are removed. Fixes: + Panic: file mail-index-util.c: line 10 (mail_index_uint32_to_offset): + assertion failed: (offset < 0x40000000) + - lib-lua: A HTTP client could not resolve DNS names in mail processes, + because it expected "the dns-client" socket to exist in the current + directory. + - lib-oauth2: Dovecot would send client_id and client_secret as POST + parameters to the introspection server. These need to be optionally in + Basic auth instead. + - lib-oauth2: JWT aud validation was not performed if aud was missing + from a token, but was configured on Dovecot. + - lib-oauth2: JWT key type check was too strict. + - lib-oauth2: JWT token audience was not validated against client_id as + required by the specification. + - lib-ssl-iostream: Using the ssl_require_crl=yes setting may have caused + CRL check failures for outgoing SSL/TLS connections, although it was + supposed to affect checking CRLs only for client-side SSL + certificates. v2.3.17 regression. + - lib-sql: MySQL driver leaked memory when connection failed. + - lib-storage: Various fixes when running into out of disk space. + - master: Service idle_kill setting didn't work properly on busy + servers. It was very unlikely that any process was idling long enough + to become killed. Also the idle_kill handling code was using quite a + lot of CPU on the master process when there were a lot of processes + (e.g. imap). The new behavior is to track the lowest number of idling + processes every idle_kill time interval and then kill that many idling + processes. + - mdbox: Temp file scan was done for always empty directories. + - mdbox: The fdatasync() call was done in wrong parent directory when + writing mails. Also on a failure it crashed instead of logging an error. + - notify_status: The plugin crashes if any user initialization fails. + - pop3: Sending command with the ':' character caused an assert-crash. + v2.3.18 regression. Fixes: Panic: event_reason_code_prefix(): name has ':' + - stats: Fix panic when a nonexistent event exporter was referenced while + adding a new metric dynamically via doveadm stats add. This produces + a proper error now. + - stats: If process exported a lot of events and then exited, some of + the last events may have become lost. + - stats: Invalid Prometheus label names were created with specific + histogram group_by configurations. Prometheus rejected these labels. + - welcome: The plugin didn't execute in some situations that created + INBOX but didn't open it, e.g. if GETMETADATA was used before the + INBOX was opened. + +v2.3.20 2022-12-22 Aki Tuomi + + + Add dsync_features=no-header-hashes. When this setting is enabled and + one dsync side doesn't support mail GUIDs (i.e. imapc), there is no + fallback to using header hashes. Instead, dsync assumes that all mails + with identical IMAP UIDs contains the same mail contents. This can + significantly improve dsync performance with some IMAP servers that + don't support caching Date/Message-ID headers. + + lua: HTTP client has more settings now, see + https://doc.dovecot.org/admin_manual/lua/#dovecot.http.client + + replicator: "doveadm replicator status" command now outputs when the + next sync is expected for the user. + - LAYOUT=index: duplicate GUIDs were not cleaned out. Also the list + recovery was not optimal. + - auth: Assert crash would occur when iterating multiple userdb + backends. + - director: Logging into director using master user with + auth_master_user_separator character redirected user to a wrong + backend, unless master_user_separator setting was also set to the same + value. Merged these into auth_master_user_separator. + - dsync: Couldn't always fix folder GUID conflicts automatically with + Maildir format. This resulted in replication repeatedly failing + with "Remote lost mailbox GUID". + - dsync: Failed to migrate INBOX when using namespace prefix=INBOX/, + resulting in "Remote lost mailbox GUID" errors. + - dsync: INBOX was created too early with namespace prefix=INBOX/, + resulting a GUID conflict. This may have been resolved automatically, + but not always. + - dsync: v2.3.18 regression: Wrong imapc password with dsync caused + Panic: file lib-event.c: line 506 (event_pop_global): + assertion failed: (event == current_global_event) + - imapc: Requesting STATUS for a mailbox with imapc and INDEXPVT + configured did not return correct (private) unseen counts. + - lib-dict: Process would crash when committing data to redis without + dict proxy. + - lib-mail: Corrupted cached BODYSTRUCTURE caused panic during FETCH. + Fixes: Panic: file message-part-data.c: line 579 (message_part_is_attachment): + assertion failed: (data != NULL). v2.3.13 regression. + - lib-storage: mail_attribute_dict with dict-sql failed when it tried to + lookup empty dict keys. + - lib: ioloop-kqueue was missing include breaking some BSD builds. + - lua-http: Dovecot Lua HTTP client could not resolve DNS names in mail + processes, because it expected "dns-client" socket to exist in the + current directory. + - oauth2: Using %{oauth2:name} variables could cause useless + introspections. + - pop3: Sending POP3 command with ':' character caused an assert-crash. + v2.3.18 regression. + - replicator: Replication queue had various issues, potentially causing + replication requests to become stuck. + - stats: Invalid Prometheus label names were created with specific + histogram group_by configurations. Prometheus rejected these labels. + +v2.3.19.1 2022-06-14 Aki Tuomi + + - doveadm deduplicate: Non-duplicate mails were deleted. + v2.3.19 regression. + - auth: Crash would occur when iterating multiple backends. + Fixes: Panic: file userdb-blocking.c: + line 125 (userdb_blocking_iter_next): assertion failed: (ctx->conn != NULL) + +v2.3.19 2022-05-10 Aki Tuomi + + + Added mail_user_session_finished event, which is emitted when the mail + user session is finished (e.g. imap, pop3, lmtp). It also includes + fields with some process statistics information. + See https://doc.dovecot.org/admin_manual/list_of_events/ for more + information. + + Added process_shutdown_filter setting. When an event matches the filter, + the process will be shutdown after the current connection(s) have + finished. This is intended to reduce memory usage of long-running imap + processes that keep a lot of memory allocated instead of freeing it to + the OS. + + auth: Add cache hit indicator to auth passdb/userdb finished events. + See https://doc.dovecot.org/admin_manual/list_of_events/ for more + information. + + doveadm deduplicate: Performance is improved significantly. + + imapc: COPY commands were sent one mail at a time to the remote IMAP + server. Now the copying is buffered, so multiple mails can be copied + with a single COPY command. + + lib-lua: Add a Lua interface to Dovecot's HTTP client library. See + https://doc.dovecot.org/admin_manual/lua/ for more information. + - auth: Cache lookup would use incorrect cache key after username change. + - auth: Improve handling unexpected LDAP connection errors/hangs. + Try to fix up these cases by reconnecting to the LDAP server and + aborting LDAP requests earlier. + - auth: Process crashed if userdb iteration was attempted while auth-workers + were already full handling auth requests. + - auth: db-oauth2: Using %{oauth2:name} variables caused unnecessary + introspection requests. + - dict: Timeouts may have been leaked at deinit. + - director: Ring may have become unstable if a backend's tag was changed. + It could also have caused director process to crash. + - doveadm kick: Numeric parameter was treated as IP address. + - doveadm: Proxying can panic when flushing print output. Fixes + Panic: file ioloop.c: line 865 (io_loop_destroy): assertion failed: + (ioloop == current_ioloop). + - doveadm sync: BROKENCHAR was wrongly changed to '_' character when + migrating mailboxes. This was set by default to %, so any mailbox + names containing % characters were modified to "_25". + - imapc: Copying or moving mails with doveadm to an imapc mailbox could + have produced "Error: Syncing mailbox '[...]' failed" Errors. The + operation itself succeeded but attempting to sync the destination + mailbox failed. + - imapc: Prevent index log synchronization errors when two or more imapc + sessions are adding messages to the same mailbox index files, i.e. + INDEX=MEMORY is not used. + - indexer: Process was slowly leaking memory for each indexing request. + - lib-fts: fts header filters caused binary content to be sent to the + indexer with non-default configuration. + - doveadm-server: Process could hang in some situations when printing + output to TCP client, e.g. when printing doveadm sync state. + - lib-index: dovecot.index.log files were often read and parsed entirely, + rather than only the parts that were actually necessary. This mainly + increased CPU usage. + - lmtp-proxy: Session ID forwarding would cause same session IDs being + used when delivering same mail to multiple backends. + - log: Log prefix update may have been lost if log process was busy. + This could have caused log prefixes to be empty or in some cases + reused between sessions, i.e. log lines could have been logged for the + wrong user/session. + - mail_crypt: Plugin crashes if it's loaded only for some users. Fixes + Panic: Module context mail_crypt_user_module missing. + - mail_crypt: When LMTP was delivering mails to both recipients with mail + encryption enabled and not enabled, the non-encrypted recipients may + have gotten mails encrypted anyway. This happened when the first + recipient was encrypted (mail_crypt_save_version=2) and the 2nd + recipient was not encrypted (mail_crypt_save_version=0). + - pop3: Session would crash if empty line was sent. + - stats: HTTP server leaked memory. + - submission-login: Long credentials, such as OAUTH2 tokens, were refused + during SASL interactive due to submission server applying line length + limits. + - submission-login: When proxying to remote host, authentication was not + using interactive SASL when logging in using long credentials such as + OAUTH2 tokens. This caused authentication to fail due to line length + constraints in SMTP protocol. + - submission: Terminating the client connection with QUIT command after + mail transaction is started with MAIL command and before it is + finished with DATA/BDAT can cause a segfault crash. + - virtual: doveadm search queries with mailbox-guid as the only parameter + crashes: Panic: file virtual-search.c: line 77 (virtual_search_get_records): + assertion failed: (result != 0) + +v2.3.18 2022-02-03 Aki Tuomi + + * Removed mail_cache_lookup_finished event. This event wasn't especially + useful, but it increased CPU usage significantly. + * fts: Don't index inline base64 encoded content in FTS indexes using + the generic tokenizer. This reduces the FTS index sizes by removing + input that is very unlikely to be searched for. See + https://doc.dovecot.org/configuration_manual/fts/tokenization for + details on how base64 is detected. Only applies when using libfts. + * lmtp: Session IDs are now preserved through proxied connections, so + LMTP sessions can be tracked. This slightly changes the LMTP session + ID format by appending ":Tn" (transaction), ":Pn" (proxy connection) + and ":Rn" (recipient) counters after the session ID prefix. + + Events now have "reason_code" field, which can provide a list of + reasons why the event is happening. See + https://doc.dovecot.org/admin_manual/event_reasons/ + + New events are added. See https://doc.dovecot.org/admin_manual/list_of_events/ + + fts: Added fts_header_excludes and fts_header_includes settings to + specify which headers to index. See + https://doc.dovecot.org/settings/plugin/fts-plugin#plugin-fts-setting-fts-header-excludes + for configuration details. + + fts: Initialize the textcat language detection library only once per + process. This can reduce CPU usage if fts_languages setting has multiple + languages listed and service indexer-worker { service_count } isn't 1. + Only applies when using libfts. + + lib-storage: Reduced CPU usage significantly for some operations that + accessed lots of emails (e.g. fetching all flags in a folder, SORT, ...) + + lib: DOVECOT_PREREQ() - Add micro version which enables compiling + external plugins against different versions of Dovecot. + + lmtp: Added new lmtp_verbose_replies setting that makes errors sent to + the LMTP client much more verbose with details about why exactly + backend proxy connections or commands are failing. + + submission: Support implicit SASL EXTERNAL with + submission_client_workarounds=implicit-auth-external. This allows + automatically logging in when SSL client certificate is present. + - *-login: Statistics were disabled if stats process connection was lost. + - auth: Authentication master user login fails with SCRAM-* SASL mechanisms. + - auth: With auth_cache_verify_password_with_worker=yes, passdb extra + fields in the auth cache got lost. + - doveadm: Fixed crash if zlib_save_level setting was specified, + but zlib_save was unset. v2.3.15 regression. + - doveadm: Proxying can panic when flushing print output. v2.3.17 + regression. Fixes: + Panic: file ioloop.c: line 865 (io_loop_destroy): assertion failed: + (ioloop == current_ioloop) + - doveadm: stats add --group-by parameter didn't work. + - fts: Using email-address fts tokenizer could result in excessive memory + usage with garbage email input. This could cause the indexer-worker + processes to fail due to reaching the VSZ memory size limit. + Only applies when using libfts. + - imap: A SEARCH command timing out while fts returns indexes may timeout + returning "NO [SERVERBUG]", while it should return "NO [INUSE]" instead. + - imap: LIST-EXTENDED doesn't return STATUS for all folders. Sending + LIST .. RETURN (SUBSCRIBED STATUS (...)) did not return STATUS for + folders that are not subscribed when they have a child folder that is + subscribed as mandated by IMAP RFCs. + - imapc: Mailbox vsize calculation crashed with + Panic: file index-mailbox-size.c: line 344 (index_mailbox_vsize_hdr_add_missing): + assertion failed: (mails_left > 0) + - indexer: If indexer-worker crashes, the request it was processing gets + stuck in the indexer process. This stops indexing for the folder until + indexer process is restarted. v2.3.14 regression. + - indexer: Process was slowly leaking memory for each indexing request. + - lib-event: Unnamed events were wrongly filtered out for event/metric + filters like "event=abc OR something_independent_of_event_name". + - lib-index: 64-bit big endian CPUs handle last_used field in + dovecot.index.cache wrong. + - lib-ssl-iostream: Fix buggy OpenSSL error handling without assert-crashing. + If there is no error available, log it as an error instead of crashing. + The previous fix for this in v2.3.11 was incomplete. Fixes + Panic: file istream-openssl.c: line 51 (i_stream_ssl_read_real): + assertion failed: (errno != 0) + - lmtp: Out-of-memory issues can happen when proxying large messages to + LMTP backend servers that accept the message data too slow. + - master: HAProxy header parsing has read buffer overflow if provided + header size is invalid. This happens only if inet_listener + { haproxy=yes } is configured and only if the remote IP address is in + haproxy_trusted_networks. + - old_stats: Plugin kept increasing memory usage, which became + noticeable with long-running imap sessions. + - stats: Dynamically adding same metric multiple times causes multiple stats. + - submission-login: Authentication does not accept OAUTH2 token (or + other very long credentials) because it considers the line to be too long. + - submission-login: Process can crash if HELO is pipelined with an + invalid domain. + - submission-proxy: Don't use SASL-IR if it would make the AUTH command + line longer than 512 bytes. + - submission: Service would crash if relay server authentication failed. + - virtual: FTS search in a virtual folder could crash if there are + duplicate mailbox GUIDs. This mainly happened when user had both INBOX + and INBOX/INBOX folders and the namespace prefix was INBOX/. Fixes + Panic: file hash.c: line 252 (hash_table_insert_node): + assertion failed: (opcode == HASH_TABLE_OP_UPDATE) + - virtual: If mailbox opening fails, the backend mailbox is leaked and + process crashes when client disconnects. Fixes + Panic: file mail-user.c: line 232 (mail_user_deinit): + assertion failed: ((*user)->refcount == 1) + - virtual: Searching headers in virtual folders didn't always use + full-text search indexes, if fts_enforced=no or body. + +v2.3.17.1 2021-12-07 Aki Tuomi + + - dsync: Add back accidentically removed parameters. + - lib-ssl-iostream: Fix assert-crash when OpenSSL returned syscall error + without errno. + - master: Dovecot failed to start if ssl_ca was too large. + +v2.3.17 2021-10-28 Aki Tuomi + + * Dovecot now logs a warning if time seems to jump forward at least + 100 milliseconds. + * dict: Lines logged by the dict process now contain the dict name as + the prefix. + * lib-index: mail_cache_fields, mail_always_cache_fields and + mail_never_cache_fields now verifies that the listed header names are + valid. Especially the UTF8 "–" character has sometimes been wrongly + used instead of the ASCII "-". + + *-login: Added login_proxy_rawlog_dir setting to capture + rawlogs between proxy and backend. + + dict: The server process now keeps the last 10 idle dict backends + cached for maximum of 30 seconds. Practically this acts as a + connection pool for dict-redis and dict-ldap. Note that this doesn't + affect dict-sql, because it already had its own internal cache. + + doveadm: New stats add/remove commands added to support changing the + metrics configuration on runtime. + + lazy_expunge: Added lazy_expunge_exclude settings to disable + lazy_expunge for specific folders. \Special-use flags can be used as + folder names. + + lib-lua: Added a new helper function dovecot.restrict_global_variables() + to disable or enable defining new global variables. + - LAYOUT=index List index rebuild was missing. + - LAYOUT=index: Duplicate GUIDs were not detected. + - acl: When using acl_ignore_namespace Dovecot attempted to access or + create dovecot-acl-list even when the namespace should have been + ignored. For virtual namespaces this could have yielded errors about + "Read-only file system" or "Permission denied". + - auth: Setting the "master" passdb field to empty value would + cause proxying to fail with an authentication error. + Now an empty "master" field is ignored. + - doveadm-server: Duplicate error lines were sent for failed commands. + This didn't normally cause visible problems, except when using + wildcards in usernames or -A parameter to go through multiple users. + - doveadm-server: Logs written by doveadm-server were often missing log + prefixes, especially mail_log_prefix for mail commands. Logs sent to + doveadm TCP client were also missing log prefixes. + - doveadm: v2.3 regression: batch command always crashes. + - doveadm: v2.3.11 regression: Commands failed if ssl_cert or + ssl_key files weren't readable by the user running doveadm, even + though doveadm didn't actually use these settings + - imap-hibernate: Process may crash at deinit: + Panic: file ioloop.c: line 928 (io_loop_destroy): assertion failed: + (ioloop->cur_ctx == NULL). + - imap: Using imap_fetch_failure=no-after can cause assert-crash + with some IMAP commands if reading the mail fails (e.g. wrong cached + mail size). Fixes: + Panic: file index-mail-headers.c: line 198 (index_mail_parse_header_init): + assertion failed: (!mail->data.header_parser_initialized) + - imap: v2.3.10 regression: When using INDEXPVT to enable private + \Seen flags (for shared or public namespaces) the STORE command did + not send untagged replies for the \Seen flag changes. + - imap: v2.3.15 regression: If PREVIEW/SNIPPET is not the final FETCH + option in the command, the IMAP FETCH response is broken. + - imap: v2.3.15 regression: MOVE command leaks mailbox if it can't be + opened and crashes at deinit: + Panic: file mail-user.c: line 229 (mail_user_deinit): assertion failed: + ((*user)->refcount == 1). + - imapc: Copying nonexistent mail via imapc could have crashed. Fixes: + Panic: file mail-storage.c: line 2385 (mailbox_transaction_commit_get_changes): + assertion failed: (ret < 0 || seq_range_count(&changes_r->saved_uids) == save_count || + array_count(&changes_r->saved_uids) == 0). + - indexer: v2.3.15 regression: Process crashes if indexer-client + disconnects while it's waiting for command reply. This happened for + example if IMAP SEARCH triggered long fts indexing and the IMAP + client disconnected while waiting for the reply. + - indexer: v2.3.15 regression: Process may have crashed in some situations. + - indexer: v2.3.15 regression: indexer-worker processes may not have + reached the process_limit in some situations, possibly even using just + one indexer-worker process even though there were many indexing + requests queued. + - lib-compression: Reading lz4 compressed mdbox mails may crash. Fixes: + Panic: file istream.c: line 345 (i_stream_read_memarea): + assertion failed: (!stream->blocking). + - lib-compression: bench-compress crashes due to xz being read-only. + - lib-lua: Fix linking libdict_lua for non-GNU linkers when Lua support + is disabled. + - lib-mail: There was no limit on how large an email header name could be. + Processable header names are now limited to 1000 bytes. + - lib-oauth2: Dovecot disallowed JWT tokens if their validity time was + older than token creation time (nbf < iat). + - lib-storage: Reduce memory footprint of certain storage operations. + - lib-storage: When listing mailboxes with storage name escape + characters (^ or .) as part of the mailbox name, the listing could + show corrupted mailbox names. Due to an issue in handling escaped + parent folders, the listing of other mailbox names would become + corrupted by prepending parts of the previously listed mailboxes + parent folder as prefix to the actual mailbox names. The corruption + can occur when using LAYOUT=INDEX and maildir or obox, or when using + the listescape plugin. + - mail-crypt: Fix "-O" argument for "doveadm mailbox cryptokey password" + command to be a boolean, and not expect a string. + - submission-login: Add support for not authenticating to next hop in + submission proxying. + - submission-login: EHLO was not sent again after XCLIENT when doing + submission proxying. + - virtual: Mailboxes do not correctly detect underlying mailboxes + getting re-created even though they have a different UIDVALIDITY or + GUID. + +v2.3.16 2021-08-06 Timo Sirainen + + * Any unexpected exit() will now result in a core dump. This can + especially help notice problems when a Lua script causes exit(0). + * auth-worker process is now restarted when the number of auth + requests reaches service auth-worker { service_count }. The default + is still unlimited. + + + Event improvements: Added data_stack_grow event and http-client + category. See https://doc.dovecot.org/admin_manual/list_of_events/ + + oauth2: Support RFC 7628 openid-configuration element. This allows + clients to support OAUTH2 for any server, not just a few hardcoded + servers like they do now. See openid_configuration_url setting in + dovecot-oauth2.conf.ext. + + mysql: Single statements are no longer enclosed with BEGIN/COMMIT. + + dovecot-sysreport --core supports multiple core files now and does + not require specifying the binary path. + + imapc: When imap_acl plugin is loaded and imapc_features=acl is used, + IMAP ACL commands are proxied to the remote server. See + https://doc.dovecot.org/configuration_manual/mail_location/imapc/ + + dict-sql now supports the "UPSERT" syntax for SQLite and PostgreSQL. + + imap: If IMAP client disconnects during a COPY command, the copying + is aborted, and changes are reverted. This may help to avoid many + email duplicates if client disconnects during COPY and retries it + after reconnecting. + - master process was using 100% CPU if service attempted to create more + processes due to process_min_avail, but process_limit was already + reached. v2.3.15 regression. + - Using attachment detection flags wrongly logged unnecessary "Failed + to add attachment keywords" errors. v2.3.13 regression. + - IMAP QRESYNC: Expunging UID 1 mail resulted in broken VANISHED + response, which could have confused IMAP clients. v2.3.13 regression. + - imap: STORE didn't send untagged replies for \Seen changes for + (shared) mailboxes using INDEXPVT. v2.3.10 regression. + - rawlog_dir setting would not log input that was pipelined after + authentication command. + - Fixed potential infinite looping with autoexpunging. + - Log event exporter: Truncate long fields to 1000 bytes + - LAYOUT=index: ACL inheritance didn't work when creating mailboxes + - Event filters: Unquoted '?' wildcard caused a crash at startup + - fs-metawrap: Fix to handling zero sized files + - imap-hibernate: Fixed potential crash at deinit. + - acl: dovecot-acl-list files were written for acl_ignore_namespaces + - program-client (used by Sieve extprograms, director_flush_socket) + may have missed status response from UNIX and network sockets, + resulting in unexpected failures. + +v2.3.15 2021-06-21 Aki Tuomi + + * CVE-2021-29157: Dovecot does not correctly escape kid and azp fields in + JWT tokens. This may be used to supply attacker controlled keys to + validate tokens, if attacker has local access. + * CVE-2021-33515: On-path attacker could have injected plaintext commands + before STARTTLS negotiation that would be executed after STARTTLS + finished with the client. + * Disconnection log messages are now more standardized across services. + They also always now start with "Disconnected" prefix. + * Dovecot now depends on libsystemd for systemd integration. + * Removed support for Lua 5.2. Use version 5.1 or 5.3 instead. + * config: Some settings are now marked as "hidden". It's discouraged to + change these settings. They will no longer be visible in doveconf + output, except if they have been changed or if doveconf -s parameter + is used. See https://doc.dovecot.org/settings/advanced/ for details. + * imap-compress: Compression level is now algorithm specific. + See https://doc.dovecot.org/settings/plugin/compress-plugin/ + * indexer-worker: Convert "Indexed" info logs to an event named + "indexer_worker_indexing_finished". See + https://doc.dovecot.org/admin_manual/list_of_events/#indexer-worker-indexing-finished + + Add TSLv1.3 support to min_protocols. + + Allow configuring ssl_cipher_suites. (for TLSv1.3+) + + acl: Add acl_ignore_namespace setting which allows to entirely ignore + ACLs for the listed namespaces. + + imap: Support official RFC8970 preview/snippet syntax. Old methods of + retrieving preview information via IMAP commands ("SNIPPET and PREVIEW + with explicit algorithm selection") have been deprecated. + + imapc: Support INDEXPVT for imapc storage to enable private + message flags for cluster wide shared mailboxes. + + lib-storage: Add new events: mail_opened, mail_expunge_requested, + mail_expunged, mail_cache_lookup_finished. See + https://doc.dovecot.org/admin_manual/list_of_events/#mail + + zlib, imap-compression, fs-compress: Support compression levels that + the algorithm supports. Before, we would allow hardcoded value between + 1 to 9 and would default to 6. Now we allow using per-algorithm value + range and default to whatever default the algorithm specifies. + - *-login: Commands pipelined together with and just after the authenticate + command cause these commands to be executed twice. This applies to all + protocols that involve user login, which currently comprises of imap, + pop3, submisision and managesieve. + - *-login: Processes are supposed to disconnect the oldest non-logged in + connection when process_limit was reached. This didn't actually happen + with the default "high-security mode" (with service_count=1) where each + connection is handled by a separate process. + - *-login: When login process reaches client/process limits, oldest + client connections are disconnected. If one of these was still doing + anvil lookup, this caused a crash. This could happen only if the login + process limits were very low or if the server was overloaded. + - Fixed building with link time optimizations (-flto). + - auth: Userdb iteration with passwd driver does not always return all + users with some nss drivers. + - dsync: Shared INBOX not synced when "mail_shared_explicit_inbox" was + disabled. If a user has a shared mailbox which is another user's INBOX, + dsync didn't include the mailbox in syncing unless explicit naming is + enabled with "mail_shared_explicit_inbox" set to "yes". + - dsync: Shared namespaces were not synced with "-n" flag. + - dsync: Syncing shared INBOX failed if mail_attribute_dict was not set. + If a user has a shared mailbox that is another user's INBOX, dsync + failed to export the mailbox if mail attributes are disabled. + - fts-solr, fts-tika: Using both Solr FTS and Tika may have caused HTTP + requests to assert-crash: Panic: file http-client-request.c: line 1232 + (http_client_request_send_more): assertion failed: (req->payload_input != NULL) + - fts-tika: 5xx errors returned by Tika server as indexing failures. + However, Tika can return 5xx for some attachments every time. + So the 5xx error should be retried once, but treated as success if it + happens on the retry as well. v2.3 regression. + - fts-tika: v2.3.11 regression: Indexing messages with fts-tika may have + resulted in Panic: file message-parser.c: line 802 (message_parser_deinit_from_parts): + assertion failed: (ctx->nested_parts_count == 0 || i_stream_have_bytes_left(ctx->input)) + - imap: SETMETADATA could not be used to unset metadata values. + Instead NIL was handled as a "NIL" string. v2.3.14 regression. + - imap: IMAP BINARY FETCH crashes at least on empty base64 body: + Panic: file index-mail-binary.c: line 358 (blocks_count_lines): + assertion failed: (block_count == 0 || block_idx+1 == block_count) + - imap: If IMAP client using the NOTIFY command was disconnected while + sending FETCH notifications to the client, imap could crash with + Panic: Trying to close mailbox INBOX with open transactions. + - imap: Using IMAP COMPRESS extension can cause IMAP connection to hang + when IMAP commands are >8 kB long. + - imapc: If remote server sent BYE but didn't immediately disconnect, it + could cause infinite busy-loop. + - lib-index: Corrupted cache record size in dovecot.index.cache file + could have caused a crash (segfault) when accessing it. + - lib-oauth2: JWT token time validation now works correctly with + 32-bit systems. + - lib-ssl-iostream: Checking hostnames against an SSL certificate was + case-sensitive. + - lib-storage: Corrupted mime.parts in dovecot.index.cache may have + resulted in Panic: file imap-bodystructure.c: line 206 (part_write_body): + assertion failed: (text == ((part->flags & MESSAGE_PART_FLAG_TEXT) != 0)) + - lib-storage: Index rebuilding (e.g. via doveadm force-resync) didn't + preserve the "hdr-pop3-uidl" header. Because of this, the next pop3 + session could have accessed all of the emails' metadata to read their + POP3 UIDL (opening dbox files). + - listescape: When using the listescape plugin and a shared namespace + the plugin didn't work properly anymore resulting in errors like: + "Invalid mailbox name: Name must not have '/' character." + - lmtp: Connection crashes if connection gets disconnected due to + multiple bad commands and the last bad command is BDAT. + - lmtp: The Dovecot-specific LMTP parameter XRCPTFORWARD was blindly + forwarded by LMTP proxy without checking that the backend has support. + This caused a command parameter error from the backend if it was + running an older Dovecot release. This could only occur in more complex + setups where the message was proxied twice; when the proxy generated + the XRCPTFORWARD parameter itself the problem did not occur, so this + only happened when it was forwarded. + - lmtp: The LMTP proxy crashes with a panic when the remote server + replies with an error while the mail is still being forwarded through + a DATA/BDAT command. + - lmtp: Username may have been missing from lmtp log line prefixes when + it was performing autoexpunging. + - master: Dovecot would incorrectly fail with haproxy 2.0.14 service + checks. + - master: Systemd service: Dovecot announces readiness for accepting + connections earlier than it should. The following environment variables + are now imported automatically and can be omitted from + import_environment setting: NOTIFY_SOCKET LISTEN_FDS LISTEN_PID. + - master: service { process_min_avail } was launching processes too + slowly when master was forking a lot of processes. + - util: Make the health-check.sh example script POSIX shell compatible. + +v2.3.14.1 2021-06-21 Aki Tuomi + + * CVE-2021-29157: Dovecot does not correctly escape kid and azp fields in + JWT tokens. This may be used to supply attacker controlled keys to + validate tokens, if attacker has local access. + * CVE-2021-33515: On-path attacker could have injected plaintext commands + before STARTTLS negotiation that would be executed after STARTTLS + finished with the client. + - lib-index: Corrupted mime.parts in dovecot.index.cache may have + resulted in Panic: file imap-bodystructure.c: line 206 (part_write_body): + assertion failed: (text == ((part->flags & MESSAGE_PART_FLAG_TEXT) != 0)) + - imap: SETMETADATA could not be used to unset metadata values. + Instead NIL was handled as a "NIL" string. v2.3.14 regression. + +V2.3.14 2021-03-04 Aki Tuomi + + * Added new aliases for some variables. Usage of the old ones is possible, + but discouraged. (These were partially added already to v2.3.13.) + See https://doc.dovecot.org/configuration_manual/config_file/config_variables/ + for more information. + * Optimize imap/pop3/submission/managesieve proxies to use less CPU at + the cost of extra memory usage. + * Remove autocreate, expire, snarf and mail-filter plugins. + * Remove cydir storage driver. + * Remove XZ/LZMA write support. Read support will be removed in future release. + * doveadm -D: Add timestamps to debug output even when LOG_STDERR_TIMESTAMP + environment variable is not set. Timestamp format is taken from + log_timestamp setting. + * If BROKENCHAR or listescape plugin is used, the escaped folder names + may be slightly different from before in some situations. This is + unlikely to cause issues, although caching clients may redownload the + folders. + * imapc: It now enables BROKENCHAR=~ by default to escape remote folder + names if necessary. This also means that if there are any '~' + characters in the remote folder names, they will be visible as "~7e". + * imapc: When using local index files folder names were escaped on + filesystem a bit differently. This affects only if there are folder + names that actually require escaping, which isn't so common. The old + style folders will be automatically deleted from filesystem. + * stats: Update exported metrics to be compliant with OpenMetrics standard. + + doveadm: Add an optional '-p' parameter to metadata list command. If + enabled, "/private", and "/shared" metadata prefixes will be prepended + to the keys in the list output. + + doveconf: Support environment variables in config files. See + https://doc.dovecot.org/configuration_manual/config_file/config_file_syntax/#environment-variables + for more details. + + indexer-worker: Change indexer to disconnect from indexer-worker + after each request. This allows service indexer-worker's service_count & + idle_kill settings to work. These can be used to restart indexer-worker + processes once in a while to reduce their memory usage. + - auth: "nodelay" with various authentication mechanisms such as apop + and digest-md5 crashed AUTH process if authentication failed. + - auth: Auth lua script generating an error triggered an assertion + failure: Panic: file db-lua.c: line 630 (auth_lua_call_password_verify): + assertion failed: (lua_gettop(script->L) == 0). + - configure: Fix libunwind detection to work on other than x86_64 systems. + - doveadm-server: Process could crash if logging was done outside command + handling. For example http-client could have done debug logging + afterwards, resulting in either segfault or Panic: + file http-client.c: line 642 (http_client_context_close): + assertion failed: (cctx->clients_list == NULL). + - dsync: Folder name escaping with BROKENCHAR didn't work completely + correctly. This especially caused problems with dsync-migrations using + imapc where some of the remote folder names may not have been accessible. + - dsync: doveadm sync + imapc doesn't always sync all mails when doing + an incremental sync (-1), which could lead to mail loss when it's used + for migration. This happens only when GUIDs aren't used (i.e. + imapc without imapc_features=guid-forced). + - fts-tika: When tika server returns error, some mails cause Panic: + file message-parser.c: line 802 (message_parser_deinit_from_parts): + assertion failed: (ctx->nested_parts_count == 0 || i_stream_have_bytes_left(ctx->input)) + - lib-imap: imapc parsing illegal BODYSTRUCTUREs with NILs could have + resulted in crashes. This exposed that Dovecot was wrongly accepting + atoms in "nstring" handling. Changed the IMAP parsing to be more + strict about this now. + - lib-index: If dovecot.index.cache has corrupted message size, fetching + BODY/BODYSTRUCTURE may cause assert-crash: + Panic: file index-mail.c: line 1140 (index_mail_parse_body_finish): + assertion failed: (mail->data.parts != NULL). + - lib-index: Minor error handling and race condition fixes related to + rotating dovecot.index.log. These didn't usually cause problems, + unless the log files were rotated rapidly. + - lib-lua: Lua scripts using coroutines or lua libraries using coroutines + (e.g., cqueues) panicked. + - Message PREVIEW handled whitespace wrong so first space would get + eaten from between words. + - FTS and message PREVIEW (snippet) parsed HTML &entities case-sensitively. + - lib-mail: When max nested MIME parts were reached, IMAP BODYSTRUCTURE + was written in a way that may have caused confusion for IMAP clients + and also Dovecot itself when parsing it. The truncated part is now + written out using application/octet-stream MIME type. + - lib-oauth2: HS512 and HS384 JWT token algorithms crash when you try to + use them: Panic: file hmac.c: line 26 (hmac_init): assertion failed: + (meth->context_size <= MAC_MAX_CONTEXT_SIZE). + - event filters: NOT keyword did not have the correct associativity. + NOT a AND b were getting parsed as NOT (a AND b) instead of + (NOT a) AND b. + - Ignore ECONNRESET when closing socket. This avoids logging useless + errors on systems like FreeBSD. + - event filters: event filter syntax error may lead to Panic: + file event-filter.c: line 137 (event_filter_parse): assertion failed: + (state.output == NULL) + - lib: timeval_cmp_margin() was broken on 32-bit systems. This could + potentially have caused HTTP timeouts to be handled incorrectly. + - log: instance_name wasn't used as syslog ident by the log process. + - master: After a service reached process_limit and client_limit, it + could have taken up to 1 second to realize that more client connections + became available. During this time client connections could have been + unnecessarily rejected and a warning logged: + Warning: service(...): process_limit (...) reached, client connections are being dropped + - stats: Crash would occur when generating openmetrics data for metrics + using aggregating functions. + - stats: Event filters comparing against empty strings crash the stats + process. + +v2.3.13 2021-01-04 Aki Tuomi + + * CVE-2020-24386: Specially crafted command can cause IMAP hibernate to + allow logged in user to access other people's emails and filesystem + information. + * Metric filter and global event filter variable syntax changed to a + SQL-like format. See https://doc.dovecot.org/configuration_manual/event_filter/ + * auth: Added new aliases for %{variables}. Usage of the old ones is + possible, but discouraged. + * auth: Removed RPA auth mechanism, SKEY auth mechanism, NTLM auth + mechanism and related password schemes. + * auth: Removed passdb-sia, passdb-vpopmail and userdb-vpopmail. + * auth: Removed postfix postmap socket + + auth: Added new fields for auth server events. These fields are now + also available for all auth events. See + https://doc.dovecot.org/admin_manual/list_of_events/#authentication-server + for details. + + imap-hibernate: Added imap_client_hibernated, imap_client_unhibernated + and imap_client_unhibernate_retried events. See + https://doc.dovecot.org/admin_manual/list_of_events/ for details. + + lib-index: Added new mail_index_recreated event. See + https://doc.dovecot.org/admin_manual/list_of_events/#mail-index-recreated + + lib-sql: Support TLS options for cassandra driver. This requires + cpp-driver v2.15 (or later) to work reliably. + + lib-storage: Missing $HasAttachment / $HasNoAttachment flags are now + added to existing mails if mail_attachment_detection_option=add-flags + and it can be done inexpensively. + + login proxy: Added login_proxy_max_reconnects setting (default 3) to + control how many reconnections are attempted. + + login proxy: imap/pop3/submission/managesieve proxying now supports + reconnection retrying on more than just connect() failure. Any error + except a non-temporary authentication failure will result in reconnect + attempts. + - auth: Lua passdb/userdb leaks stack elements per call, eventually + causing the stack to become too deep and crashing the auth or + auth-worker process. + - auth: SASL authentication PLAIN mechanism could be used to trigger + read buffer overflow. However, this doesn't seem to be exploitable in + any way. + - auth: v2.3.11 regression: GSSAPI authentication fails because dovecot + disallows NUL bytes for it. + - dict: Process used too much CPU when iterating keys, because each key + used a separate write() syscall. + - doveadm-server: Crash could occur if logging was done outside command + handling. For example http-client could have done debug logging + afterwards, resulting in either segfault or + Panic: file http-client.c: line 642 (http_client_context_close): + assertion failed: (cctx->clients_list == NULL). + - doveadm-server: v2.3.11 regression: Trying to connect to doveadm server + process via starttls assert-crashed if there were no ssl=yes listeners: + Panic: file master-service-ssl.c: line 22 (master_service_ssl_init): + assertion failed: (service->ssl_ctx_initialized). + - fts-solr: HTTP requests may have assert-crashed: + Panic: file http-client-request.c: line 1232 (http_client_request_send_more): + assertion failed: (req->payload_input != NULL) + - imap: IMAP NOTIFY could crash with a segmentation fault due to a bad + configuration that causes errors. Sending the error responses to the + client can cause the segmentation fault. This can for example happen + when several namespaces use the same mail storage location. + - imap: IMAP NOTIFY used on a shared namespace that doesn't actually + exist (e.g. public namespace for a nonexistent user) can crash with a panic: + Panic: Leaked view for index /tmp/home/asdf/mdbox/dovecot.list.index: Opened in (null):0 + - imap: IMAP session can crash with QRESYNC extension if many changes + are done before asking for expunged mails since last sync. + - imap: Process might hang indefinitely if client disconnects after + sending some long-running commands pipelined, for example FETCH+LOGOUT. + - lib-compress: Mitigate crashes when configuring a not compiled in + compression. Errors with compression configuration now distinguish + between not supported and unknown. + - lib-compression: Using xz/lzma compression in v2.3.11 could have + written truncated output in some situations. This would result in + "Broken pipe" read errors when trying to read it back. + - lib-compression: zstd compression could have crashed in some situations: + Panic: file ostream.c: line 287 (o_stream_sendv_int): assertion failed: (!stream->blocking) + - lib-dict: dict client could have crashed in some rare situations when + iterating keys. + - lib-http: Fix several assert-crashes in HTTP client. + - lib-index: v2.3.11 regression: When mails were expunged at the same + time as lots of new content was being saved to the cache (e.g. cache + file was lost and is being re-filled) a deadlock could occur with + dovecot.index.cache / dovecot.index.log. + - lib-index: v2.3.11 regression: dovecot.index.cache file was being + purged (rewritten) too often when it had a field that hadn't been + accessed for over 1 month, but less than 2 months. Every cache file + change caused a purging in this situation. + - lib-mail: MIME parts were not returned correctly by Dovecot MIME parser. + Regression caused by fixing CVE-2020-12100. + - lib-mail: When max nested MIME parts were reached, IMAP BODYSTRUCTURE + was written in a way that may have caused confusion for both IMAP + clients and Dovecot itself when parsing it. The truncated part is now + written out using application/octet-stream MIME type. + - lib-mail: v2.3.11 regression: Mail delivery / parsing crashed when the + 10000th MIME part was message/rfc822 (or if parent was multipart/digest): + Panic: file message-parser.c: line 167 (message_part_append): + assertion failed: (ctx->total_parts_count <= ctx->max_total_mime_parts). + - lib-oauth2: Dovecot incorrectly required oauth2 server introspection + reply to contain username with invalid token. + - lib-ssl-iostream, lib-dcrypt: Fix building with OpenSSL that has + deprecated APIs disabled. + - lib-storage: When mail's size is different from the cached one (in + dovecot.index.cache or Maildir S=size in the filename), this is + handled by logging "Cached message size smaller/larger than expected" + error. However, in some situations this also ended up crashing with: + Panic: file istream.c: line 315 (i_stream_read_memarea): + assertion failed: (old_size <= _stream->pos - _stream->skip). + - lib-storage: v2.3 regression: Copying/moving mails was taking much more + memory than before. This was mainly visible when copying/moving + thousands of mails in a single transaction. + - lib-storage: v2.3.11 regression: Searching messages assert-crashed + (without FTS): Panic: file message-parser.c: line 174 (message_part_finish): + assertion failed: (ctx->nested_parts_count > 0). + - lib: Dovecot v2.3 moved signal handlers around in ioloops, + causing more CPU usage than in v2.2. + - lib: Fixed JSON parsing: '\' escape sequence may have wrongly resulted + in error if it happened to be at read boundary. Any NUL characters and + '\u0000' will now result in parsing error instead of silently + truncating the data. + - lmtp, submission: Server may hang if SSL client connection disconnects + during the delivery. If this happened repeated, it could have ended + up reaching process_limit and preventing any further lmtp/submission + deliveries. + - lmtp: Proxy does not always properly log TLS connection problems as + errors; in some cases, only a debug message is logged if enabled. + - lmtp: The LMTP service can hang when commands are pipelined. This can + particularly occur when one command in the middle of the pipeline fails. + One example of this occurs for proxied LMTP transactions in which the + final DATA or BDAT command is pipelined after a failing RCPT command. + - login-proxy: The login_source_ips setting has no effect, and therefore + the proxy source IPs are not cycled through as they should be. + - master: Process was using 100% CPU in some situations when a broken + service was being throttled. + - pop3-login: POP3 login would fail with "Input buffer full" if the + initial response for SASL was too long. + - stats: Crash would occur when generating openmetrics data for metrics + using aggregating functions. + +v2.3.11.3 2020-07-29 Aki Tuomi + + - pop3-login: Login didn't handle commands in multiple IP packets properly. + This mainly affected large XCLIENT commands or a large SASL initial + response parameter in the AUTH command. + - pop3: pop3_deleted_flag setting was broken, causing: + Panic: file seq-range-array.c: line 472 (seq_range_array_invert): + assertion failed: (range[count-1].seq2 <= max_seq) + +v2.3.11.2 2020-07-13 Aki Tuomi + + - auth: Lua passdb/userdb leaks stack elements per call, eventually + causing the stack to become too deep and crashing the auth or + auth-worker process. + - lib-mail: v2.3.11 regression: MIME parts not returned correctly by + Dovecot MIME parser. + - pop3-login: Login would fail with "Input buffer full" if the initial + response for SASL was too long. + +v2.3.11 2020-06-17 Aki Tuomi + + * CVE-2020-12100: Parsing mails with a large number of MIME parts could + have resulted in excessive CPU usage or a crash due to running out of + stack memory. + * CVE-2020-12673: Dovecot's NTLM implementation does not correctly check + message buffer size, which leads to reading past allocation which can + lead to crash. + * CVE-2020-10967: lmtp/submission: Issuing the RCPT command with an + address that has the empty quoted string as local-part causes the lmtp + service to crash. + * CVE-2020-12674: Dovecot's RPA mechanism implementation accepts + zero-length message, which leads to assert-crash later on. + * Events: Fix inconsistency in events. See event documentation in + https://doc.dovecot.org. + * imap_command_finished event's cmd_name field now contains "unknown" + for unknown commands. A new "cmd_input_name" field contains the + command name exactly as it was sent. + * lib-index: Renamed mail_cache_compress_* settings to mail_cache_purge_*. + Note that these settings are mainly intended for testing and usually + shouldn't be changed. + * events: Renamed "index" event category to "mail-index". + * events: service: category is now using the name from + configuration file. + * dns-client: service dns_client was renamed to dns-client. + * log: Prefixes generally use the service name from configuration file. + For example dict-async service will now use + "dict-async(pid): " log prefix instead of "dict(pid): " + * *-login: Changed logging done by proxying to use a consistent prefix + containing the IP address and port. + * *-login: Changed disconnection log messages to be slightly clearer. + + dict: Add events for dictionaries. + + lib-index: Finish logging with events. + + oauth2: Support local validation of JWT tokens. + + stats: Add support for dynamic histograms and grouping. See + https://doc.dovecot.org/configuration_manual/stats/. + + imap: Implement RFC 8514: IMAP SAVEDATE + + lib-index: If a long-running transaction (e.g. SORT/FETCH on a huge + folder) adds a lot of data to dovecot.index.cache file, commit those + changes periodically to make them visible to other concurrent sessions + as well. + + stats: Add OpenMetrics exporter for statistics. See + https://doc.dovecot.org/configuration_manual/stats/openmetrics/. + + stats: Support disabling stats-writer socket by setting + stats_writer_socket_path="". + - auth-worker: Process keeps slowly increasing its memory usage and + eventually dies with "out of memory" due to reaching vsz_limit. + - auth: Prevent potential timing attacks in authentication secret + comparisons: OAUTH2 JWT-token HMAC, imap-urlauth token, crypt() result. + - auth: Several auth-mechanisms allowed input to be truncated by NUL + which can potentially lead to unintentional issues or even successful + logins which should have failed. + - auth: When auth policy returned a delay, auth_request_finished event + had policy_result=ok field instead of policy_result=delayed. + - auth: auth process crash when auth_policy_server_url is set to an + invalid URL. + - dict-ldap: Crash occurs if var_expand template expansion fails. + - dict: If dict client disconnected while iteration was still running, + dict process could have started using 100% CPU, although it was still + handling clients. + - doveadm: Running doveadm commands via proxying may hang, especially + when doveadm is printing a lot of output. + - imap: "MOVE * destfolder" goes to a loop copying the last mail to the + destination until the imap process dies due to running out of memory. + - imap: Running "UID MOVE 1:* Trash" on an empty folder goes to infinite + loop. + - imap: SEARCH doesn't support $. + - lib-compress: Buffer over-read in zlib stream read. + - lib-dns: If DNS lookup times out, lib-dns can cause crash in calling + process. + - lib-index: Fixed several bugs in dovecot.index.cache handling that + could have caused cached data to be lost. + - lib-index: Writing to >=1 GB dovecot.index.cache files may cause + assert-crashes: + Panic: file mail-index-util.c: line 37 (mail_index_uint32_to_offset): + assertion failed: (offset < 0x40000000) + - lib-ssl-iostream: Fix buggy OpenSSL error handling without + assert-crashing. If there is no error available, log it as an error +  instead of crashing: + Panic: file iostream-openssl.c: line 599 (openssl_iostream_handle_error): + assertion failed: (errno != 0) + - lib-ssl-iostream: ssl_key_password setting did not work. + - submission: A segfault crash may occur when the client or server + disconnects while a non-transaction command like NOOP or VRFY is still + being processed. + - virtual: Copying/moving mails with IMAP into a virtual folder assert-crashes: + Panic: file cmd-copy.c: line 152 (fetch_and_copy): assertion failed: + (copy_ctx->copy_count == seq_range_count(©_ctx->saved_uids)) + +v2.3.10 2020-03-06 Aki Tuomi + + * Disable retpoline migitations by default. These can cause severe + performance regressions, so they should be only enabled when + applicable. + * IMAP MOVE now commits transactions in batches of 1000 mails. This + helps especially with lazy_expunge when moving a lot of mails. It + mainly avoids situations where multiple IMAP sessions are running the + same MOVE command and duplicating the mails in the lazy_expunge folder. + With this change there can still be some duplication, but the MOVE + always progresses forward. Also if the MOVE fails at some point, the + changes up to the last 1000 mails are still committed instead of + rolled back. Note that the COPY command behavior hasn't changed, + because it is required by IMAP standard to be an atomic operation. + * IMAP EXPUNGE and CLOSE now expunges mails in batches of 1000 mails. + This helps especially with lazy_expunge when expunging a lot of mails + (e.g. millions) to make sure that the progress always moves forward + even if the process is killed. + * Autoexpunging now expunges mails in batches of 1000 mails. This helps + especially with lazy_expunge when expunging a lot of mails + (e.g. millions) to make sure that the progress always moves forward + even if the process is killed. + + Add tool for generating sysreport called dovecot-sysreport. + This generates a bundle of information usually needed for support + requests. + + Add support for the new IMAP \Important SPECIAL-USE flag (RFC 8457). + + Add metric { group_by } setting. This allows automatically creating + new metrics based on the fields you want to group statistics by. + NOTE: This feature is considered experimental and syntax is subject + to change in future release. + + auth: Support SCRAM-SHA-256 authentication mechanism. + + imap: Support the new IMAP STATUS=SIZE extension. + + Use TCP_QUICKACK to reduce latency for some TCP connections. + + quota-status: Made the service more robust against erroneous use with + Postfix ACL policies other than smtpd_recipient_restrictions. + + Add "revision" field support to imap_id_send setting. Using + "revision *" will send in IMAP ID command response the short commit + hash of the Dovecot git source tree HEAD (same as in dovecot --version). + + IMAP ENVELOPE includes now all addresses when there are multiple + headers (From, To, Cc, etc.) The standard way of having multiple + addresses is to just list them all in a single header. It's + non-standard to have multiple headers. However, since MTAs allow these + mails to pass through and different software may handle them in + different ways, it's better from security point of view to show all + the addresses. + + Event filters now support using "field_name=" to match a field that + doesn't exist or has an empty value. For example use "error=" to match + only events that didn't fail. + - acl: INBOX ACLs shouldn't apply for IMAP GETMETADATA/SETMETADATA + commands. + - cassandra: CASS_ERROR_SERVER_WRITE_FAILURE error should also be + treated as "uncertain write failure". + - dict-redis: Using quota_clone configured with dict-redis could have + crashed when Redis responded slowly. + - imap-hibernate: Communication trouble with imap-master leads to + segfault. + - imap-hibernate: Unhibernation retrying wasn't working. + - imap: Fixed auth lookup privilege problem when imap process was reused + and user was being un-hibernated. + - Fix potential crash when copying/moving mails within the same folder. + This happened only when there were a lot of fields in dovecot.index.cache. + - lib-index: Recreating dovecot.index.cache file could have crashed when + merging bitmask fields. + - lib-index: Using public/shared folders with INDEXPVT configured to use + private \Seen flags, trying to search seen/unseen in an empty folder + crashes with segfault. + - lib-mail: Large base64-encoded mails weren't decoded properly. + This could have affected searching/indexing mails and message snippet + generation. + - lib-mail: Message with only quoted text could have caused message + snippet to ignore its 200 character limit and return the entire + message. This was added also to dovecot.index.cache file, which + increased disk space and memory usage unnecessarily. + v2.3.9.2 regression (previous versions cached the quoted snippet as + empty). In a large mail quoted text could have become wrongly added + to the snippet, possibly mixed together with non-quoted text. + - lib-smtp: client could have assert-crashed if STARTTLS handshake + finished earlier than usually. + - lib-ssl-iostream: remove -static flag for lib-ssl-iostream linking to + prevent a compile issue. + - lib-storage: Mailbox synchronization may have assert-crashed in some + rare situations. + - lib-storage: mdbox didn't preserve date.saved with dsync. + - lib: Don't require EAI_{ADDRFAMILY,NODATA}, breaks FreeBSD + - master: Some services could respawn unthrottled if they crash during + startup. + - push-notification: Do not send push_notification_finished event if + nothing was done. This happens when mail transaction is started and + ended with no changes. + - quota-status: Addresses with special characters in the local part caused + problems in the interaction between Postfix and Dovecot. Postfix sent + its own internal representation in the recipient field, while Dovecot + expected a valid RFC5321 mailbox address. + - submission-login: SESSION was not correctly encoded field for the + XCLIENT command. Particularly, a '+' character introduced by the + session ID's Base64 encoding causes problems. + - submission: Fix submission_max_mail_size to work correctly on 32-bit + systems. + - submission: Trusted connections crashed in second connection's EHLO + if submission-login { service_count } is something else than 1 (which + is the default). + - submission: XCLIENT command was never used in the protocol exchange + with the relay MTA when submission_backend_capabilities is configured, + even when the relay MTA was properly configured to accept the XCLIENT + command. + +v2.3.9.3 2020-02-12 Aki Tuomi + + * CVE-2020-7046: Truncated UTF-8 can be used to DoS + submission-login and lmtp processes. + * CVE-2020-7957: Specially crafted mail can crash snippet generation. + +v2.3.9.2 2019-12-13 Aki Tuomi + + - Mails with empty From/To headers can also cause crash + in push notification drivers. + +v2.3.9.1 2019-12-13 Aki Tuomi + + * CVE-2019-19722: Mails with group addresses in From or To fields + caused crash in push notification drivers. + +v2.3.9 2019-12-04 Aki Tuomi + + * Changed several event field names for consistency and to avoid + conflicts in parent-child event relationships: + * SMTP server command events: Renamed "name" to "cmd_name" + * Events inheriting from a mailbox: Renamed "name" to "mailbox" + * Server connection events have only "remote_ip", "remote_port", + "local_ip" and "local_port". + * Removed duplicate "client_ip", "ip" and "port". + * Mail storage events: Removed "service" field. + Use "service:" category instead. + * HTTP client connection events: Renamed "host" to "dest_host" and + "port" to "dest_port" + * auth: Drop Postfix socketmap support. It hasn't been working + with recent Postfix versions for a while now. + * push-notification-lua: The "subject" field is now decoded to UTF8 + instead of kept as MIME-encoded. + + push-notification-lua: Added new "from_address", "from_display_name", + "to_address" and "to_display_name" fields. The display names are + decoded to UTF8. + + Added various new fields to existing events. + See http://doc.dovecot.net/admin_manual/list_of_events.html + + Add lmtp_add_received_header setting. It can be used to prevent LMTP + from adding "Received:" headers. + + doveadm: Support SSL/STARTTLS for proxied doveadm connections based on + doveadm_ssl setting and proxy ssl/tls settings. + + Log filters support now "service:", which matches all events for + the given service. It can also be used as a category. + + lib: Use libunwind to get abort backtraces with function names + where available. + + lmtp: When the LMTP proxy changes the username (from passdb lookup) + add an appropriate ORCPT parameter. + - lmtp: Add lmtp_client_workarounds setting to implement workarounds for + clients that send MAIL and RCPT commands with additional spaces before + the path and for clients that omit <> brackets around the path. + See example-config/conf.d/20-lmtp.conf. + - lda/lmtp: Invalid MAIL FROM addresses were rejcted too aggressively. + Now mails from addresses with unicode characters are delivered, but + their Return-Path header will be <> instead of the given MAIL FROM + address. + - lmtp: The lmtp_hdr_delivery_address setting is ignored. + - imap: imap_command_finished event's "args" and "human_args" parameters + were always empty. + - mbox: Seeking in zlib and bzip2 compressed input streams didn't work + correctly. + - imap-hibernate: Process crashed when client got destroyed while it was + attempted to be unhibernated, and the unhibernation fails. + - *-login: Proxying may have crashed if SSL handshake to the backend + failed immediately. This was unlikely to happen in normal operation. + - *-login: If TLS handshake to upstream server failed during proxying, + login process could crash due to invalid memory access. + - *-login: v2.3 regression: Using SASL authentication without initial + response may have caused SSL connections to hang. This happened often + at least with PHP's IMAP library. + - *-login: When login processes are flooded with authentication attempts + it starts logging errors about "Authentication server sent unknown id". + This is still expected. However, it also caused the login process to + disconnect from auth server and potentially log some user's password + in the error message. + - dict-sql: SQL prepared statements were not shared between sessions. + This resulted in creating a lot of prepared statements, which was + especially inefficient when using Cassandra backend with a lot of + Cassandra nodes. + - auth: auth_request_finished event didn't have success=yes parameter + set for successful authentications. + - auth: userdb dict - Trying to list users crashed. + - submission: Service could be configured to allow anonymous + authentication mechanism and anonymous user access. + - LAYOUT=index: Corrupted dovecot.list.index caused folder creation to + panic. + - doveadm: HTTP server crashes if request target starts with double "/". + - dsync: Remote dsync started hanging if the initial doveadm + "dsync-server" command was sent in the same TCP packet as the + following dsync handshake. v2.3.8 regression. + - lib: Several "input streams" had a bug that in some rare situations + might cause it to access freed memory. This could lead to crashes or + corruption. + The only currently known effect of this is that using zlib plugin with + external mail attachments (mail_attachment_dir) could cause fetching + the mail to return a few bytes of garbage data at the beginning of the + header. Note that the mail wasn't saved corrupted, but fetching it + caused corrupted mail to be sent to the client. + - lib-storage: If a mail only has quoted content, use the quoted text + for generating message snippet (IMAP PREVIEW) instead of returning + empty snippet. + - lib-storage: When vsize header was rebuilt, newly calculated message + sizes were added to dovecot.index.cache instead of being directly + saved into vsize records in dovecot.index. + - lib: JSON generator was escaping UTF-8 characters unnecessarily. + +v2.3.8 2019-10-08 Aki Tuomi + + + Added mail_delivery_started and mail_delivery_finished events, see + https://doc.dovecot.org/admin_manual/list_of_events/ for details. + + dsync-replication: Don't replicate users who have "noreplicate" extra + field in userdb. + + doveadm service status: Show total number of processes created. + + When logging to syslog, use instance_name setting's value for the + ident. This commonly is added as a log prefix. + + Base64 encoding/decoding code was rewritten with additional features. + It shouldn't cause any user visible changes. + - v2.3.7 regression: If a folder only receives new mails without any + other mail access, dovecot.index.log keeps growing forever and + dovecot.index keeps being rewritten for every mail delivery. + - dsync-replication may lose keywords after syncing mails restored from + another replica. This only happened if the mail only had keywords and + no system flags. + - event filters: Non-textual event fields could not be filtered using + wildcards. + - auth: Scope parameter was missing from OAuth password grant + request. + - doveadm client-server communication may hang in some situations. + It is also using unnecessarily small TCP/IP packet sizes. + - doveadm who and kick did not flush protocol output correctly. + - imap: SETMETADATA with literal value would delete the metadata value + instead of updating it. + - imap: When client issues FETCH PREVIEW (LAZY=FUZZY) command, the + caching decisions should be updated so that newly saved mails will + have the preview cached. + - With mail_nfs_index=yes and/or mail_nfs_storage=yes setuid/setgid + permission bits in some files may have become dropped with some NFS + servers. Changed NFS flushing to now use chmod() instead of chown(). + - quota: warnings did not work if quota root was noenforcing + - acl: Global ACL file ignored the last line if it didn't end with LF. + - doveadm stats dump: With JSON formatter output numbers using the + number type instead of as strings + - lmtp_proxy: Ensure that real_* variables are correctly set when using + lmtp_proxy. + - event exporter: http-post driver had hardcoded timeout and did not + support DNS lookups or TLS connections. + - auth: Fix user iteration to work with userdb passwd with glibc v2.28. + - auth: auth service can crash if auth-policy JSON response is invalid + or returned too fast. + - In some rare situations "ps" output could have shown a lot of "?" + characters after Dovecot process titles. + - When dovecot.index.pvt is empty, an unnecessary error is logged: + Error: .../dovecot.index.pvt reset, view is now inconsistent + - SMTP address encoder duplicated initial double quote character when + the localpart of an address ended in '..'. For example + "user+..@example.com" became ""user+.."@example.com in a + sieve redirect. + +v2.3.7.1 2019-07-23 Timo Sirainen + + - Fix TCP_NODELAY errors being logged on non-Linux OSes + - lmtp proxy: Fix assert-crash when client uses BODY=8BITMIME + - Remove wrongly added checks in namespace prefix checking + +v2.3.7 2019-07-12 Aki Tuomi + + * fts-solr: Removed break-imap-search parameter + + Added more events for the new statistics, see + https://doc.dovecot.org/admin_manual/list_of_events/ + + mail-lua: Add IMAP metadata accessors, see + https://doc.dovecot.org/admin_manual/lua/ + + Add event exporters that allow exporting raw events to log files and + external systems, see + https://doc.dovecot.org/configuration_manual/event_export/ + + SNIPPET is now PREVIEW and size has been increased to 200 characters. + + Add body option to fts_enforced. This triggers building FTS index only + on body search, and an error using FTS index fails the search rather + than reads through all the mails. + - Submission/LMTP: Fixed crash when domain argument is invalid in a + second EHLO/LHLO command. + - Copying/moving mails using Maildir format loses IMAP keywords in the + destination if the mail also has no system flags. + - mail_attachment_detection_options=add-flags-on-save caused email body + to be unnecessarily opened when FETCHing mail headers that were + already cached. + - mail attachment detection keywords not saved with maildir. + - dovecot.index.cache may have grown excessively large in some + situations. This happened especially when using autoexpunging with + lazy_expunge folders. Also with mdbox format in general the cache file + wasn't recreated as often as it should have. + - Autoexpunged mails weren't immediately deleted from the disk. Instead, + the deletion from disk happened the next time the folder was opened. + This could have caused unnecessary delays if the opening was done by + an interactive IMAP session. + - Dovecot's TCP connections sometimes add extra 40ms latency due to not + enabling TCP_NODELAY. HTTP and SMTP/LMTP connections weren't + affected, but everything else was. This delay wasn't always visible - + only in some situations with some message/packet sizes. + - imapc: Fix various crash conditions + - Dovecot builds were not always reproducible. + - login-proxy: With shutdown_clients=no after config reload the + existing connections could no longer be listed or kicked with doveadm. + - "doveadm proxy kick" with -f parameter caused a crash in some + situations. + - Auth policy can cause segmentation fault crash during auth process + shutdown if all auth requests have not been finished. + - Fix various minor bugs leading into incorrect behaviour in mailbox + list index handling. These rarely caused noticeable problems. + - LDAP auth: Iteration accesses freed memory, possibly crashing + auth-worker + - local_name { .. } filter in dovecot.conf does not correctly support + multiple names and wildcards were matched incorrectly. + - replicator: dsync assert-crashes if it can't connect to remote TCP + server. + - config: Memory leak in config process when ssl_dh setting wasn't + set and there was no ssl-parameters.dat file. + This caused config process to die once in a while + with "out of memory". + +v2.3.6 2019-04-30 Aki Tuomi + + * CVE-2019-11494: Submission-login crashed with signal 11 due to null + pointer access when authentication was aborted by disconnecting. + * CVE-2019-11499: Submission-login crashed when authentication was + started over TLS secured channel and invalid authentication message + was sent. + * auth: Support password grant with passdb oauth2. + + Use system default CAs for outbound TLS connections. + + Simplify array handling with new helper macros. + + fts_solr: Enable configuring batch_size and soft_commit features. + - lmtp/submission: Fixed various bugs in XCLIENT handling, including a + hang when XCLIENT commands were sent infinitely to the remote server. + - lmtp/submission: Forwarded multi-line replies were erroneously sent + as two replies to the client. + - lib-smtp: client: Message was not guaranteed to contain CRLF + consistently when CHUNKING was used. + - fts_solr: Plugin was no longer compatible with Solr 7. + - Make it possible to disable certificate checking without + setting ssl_client_ca_* settings. + - pop3c: SSL support was broken. + - mysql: Closing connection twice lead to crash on some systems. + - auth: Multiple oauth2 passdbs crashed auth process on deinit. + - HTTP client connection errors infrequently triggered a segmentation + fault when the connection was idle and not used for a particular + client instance. + +v2.3.5.2 2019-04-18 Timo Sirainen + + * CVE-2019-10691: Trying to login with 8bit username containing + invalid UTF8 input causes auth process to crash if auth policy is + enabled. This could be used rather easily to cause a DoS. Similar + crash also happens during mail delivery when using invalid UTF8 in + From or Subject header when OX push notification driver is used. + +v2.3.5.1 2019-03-28 Timo Sirainen + + * CVE-2019-7524: Missing input buffer size validation leads into + arbitrary buffer overflow when reading fts or pop3 uidl header + from Dovecot index. Exploiting this requires direct write access to + the index files. + +v2.3.5 2019-03-05 Timo Sirainen + + + Lua push notification driver: mail keywords and flags are provided + in MessageNew and MessageAppend events. + + submission: Implement support for plugins. + + auth: When auth_policy_log_only=yes, only log what the policy server + response would do without actually doing it. + + auth: Always log policy server decisions with auth_verbose=yes + - v2.3.[34]: doveadm log errors: Output was missing user/session + - lda: Debug log lines could have shown slightly corrupted + - login proxy: Login processes may have crashed in various ways when + login_proxy_max_disconnect_delay was set. + - imap: Fix crash with Maildir+zlib if client disconnects during APPEND + - lmtp proxy: Fix potential assert-crash + - lmtp/submission: Fix crash when SMTP client transaction times out + - submission: Split large XCLIENT commands to 512 bytes per command, + so Postfix accepts them. + - submission: Fix crash when client sends invalid BURL command + - submission: relay backend: VRFY command: Avoid forwarding 500 and + 502 replies back to client. + - lib-http: Fix potential assert-crash when DNS lookup fails + - lib-fts: Fix search query generation when one language ignores a + token (e.g. via stopwords). + +v2.3.4 2018-11-23 Timo Sirainen + + * The default postmaster_address is now "postmaster@". If username contains the @domain part, that's + used. If not, then the server's hostname is used. + * "doveadm stats dump" now returns two decimals for the "avg" field. + + + Added push notification driver that uses a Lua script + + Added new SQL, DNS and connection events. + See https://wiki2.dovecot.org/Events + + Added "doveadm mailbox cache purge" command. + + Added events API support for Lua scripts + + doveadm force-resync -f parameter performs "index fsck" while opening + the index. This may be useful to fix some types of broken index files. + This may become the default behavior in a later version. + - director: Kicking a user crashes if login process is very slow + - pop3_no_flag_updates=no: Don't expunge DELEted and RETRed messages + unless QUIT is sent. + - auth: Fix crypt() segfault with glibc-2.28+ + - imap: Running UID FILTER script with errors assert-crashes + - dsync, pop3-migration: POP3 UIDLs weren't added to + dovecot.index.cache while mails were saved. + - dict clients may have been using 100% CPU while waiting for dict + server to finish commands. + - doveadm user: Fixed user listing via HTTP API + - All levels of Cassandra log messages were logged as Dovecot errors. + - http/smtp client may have crashed after SSL handshake + - Lua auth converted strings that looked like numbers into numbers. + + +v2.3.3 2018-10-01 Timo Sirainen + + * doveconf hides more secrets now in the default output. + * ssl_dh setting is no longer enforced at startup. If it's not set and + non-ECC DH key exchange happens, error is logged and client is + disconnected. + + + Added log_debug= setting. + + Added log_core_filter= setting. + + quota-clone: Write to dict asynchronously + + --enable-hardening attempts to use retpoline Spectre 2 mitigations + + lmtp proxy: Support source_ip passdb extra field. + + doveadm stats dump: Support more fields and output stddev by default. + + push-notification: Add SSL support for OX backend. + - NUL bytes in mail headers can cause truncated replies when fetched. + - director: Conflicting host up/down state changes may in some rare + situations ended up in a loop of two directors constantly overwriting + each others' changes. + - director: Fix hang/crash when multiple doveadm commands are being + handled concurrently. + - director: Fix assert-crash if doveadm disconnects too early + - virtual plugin: Some searches used 100% CPU for many seconds + - dsync assert-crashed with acl plugin in some situations. + - mail_attachment_detection_options=add-flags-on-save assert-crashed + with some specific Sieve scripts. + - Mail snippet generation crashed with mails containing invalid + Content-Type:multipart header. + - Log prefix ordering was different for some log lines. + - quota: With noenforcing option current quota usage wasn't updated. + - auth: Kerberos authentication against Samba assert-crashed. + - stats clients were unnecessarily chatty with the stats server. + - imapc: Fixed various assert-crashes when reconnecting to server. + - lmtp, submission: Fix potential crash if client disconnects while + handling a command. + - quota: Fixed compiling with glibc-2.26 / support libtirpc. + - fts-solr: Empty search values resulted in 400 Bad Request errors + - fts-solr: default_ns parameter couldn't be used + - submission server crashed if relay server returned over 7 lines in + a reply (e.g. to EHLO) + +v2.3.2.1 2018-07-09 Timo Sirainen + + - SSL/TLS servers may have crashed during client disconnection + - lmtp: With lmtp_rcpt_check_quota=yes mail deliveries may have + sometimes assert-crashed. + - v2.3.2: "make check" may have crashed with 32bit systems + +v2.3.2 2018-06-29 Timo Sirainen + + * old-stats plugin: Don't temporarily enable PR_SET_DUMPABLE while + opening /proc/self/io. This may still cause security problems if the + process is ptrace()d at the same time. Instead, open it while still + running as root. + + doveadm: Added mailbox cache decision&remove commands. See + doveadm-mailbox(1) man page for details. + + doveadm: Added rebuild attachments command for rebuilding + $HasAttachment or $HasNoAttachment flags for matching mails. See + doveadm-rebuild(1) man page for details. + + cassandra: Use fallback_consistency on more types of errors + + lmtp proxy: Support outgoing SSL/TLS connections + + lmtp: Add lmtp_rawlog_dir and lmtp_proxy_rawlog_dir settings. + + submission: Add support for rawlog_dir + + submission: Add submission_client_workarounds setting. + + lua auth: Add password_verify() function and additional fields in + auth request. + - doveadm-server: TCP connections are hanging when there is a lot of + network output. This especially caused hangs in dsync-replication. + - Using multiple type=shared mdbox namespaces crashed + - mail_fsync setting was ignored. It was always set to "optimized". + - lua auth: Fix potential crash at deinit + - SSL/TLS servers may have crashed if client disconnected during + handshake. + - SSL/TLS servers: Don't send extraneous certificates to client when + alt certs are used. + - lda, lmtp: Return-Path header without '<' may have assert-crashed. + - lda, lmtp: Unencoded UTF-8 in email address headers may assert-crash + - lda: -f parameter didn't allow empty/null/domainless address + - lmtp, submission: Message size limit was hardcoded to 40 MB. + Exceeding it caused the connection to get dropped during transfer. + - lmtp: Fix potential crash when delivery fails at DATA stage + - lmtp: login_greeting setting was ignored + - Fix to work with OpenSSL v1.0.2f + - systemd unit restrictions were too strict by default + - Fix potential crashes when a lot of log output was produced + - SMTP client may have assert-crashed when sending mail + - IMAP COMPRESS: Send "end of compression" marker when disconnecting. + - cassandra: Fix consistency=quorum to work + - dsync: Lock file generation failed if home directory didn't exist + - Snippet generation for HTML mails didn't ignore &entities inside + blockquotes, producing strange looking snippets. + - imapc: Fix assert-crash if getting disconnected and after + reconnection all mails in the selected mailbox are gone. + - pop3c: Handle unexpected server disconnections without assert-crash + - fts: Fixes to indexing mails via virtual mailboxes. + - fts: If mails contained NUL characters, the text around it wasn't + indexed. + - Obsolete dovecot.index.cache offsets were sometimes used. Trying to + fetch a field that was just added to cache file may not have always + found it. + +v2.3.1 2018-02-29 Aki Tuomi + + * Submission server support improvements and bug fixes + - Lots of bug fixes to submission server + * API CHANGE: array_idx_modifiable will no longer allocate space + - Particularly affects how you should check MODULE_CONTEXT result, or + use REQUIRE_MODULE_CONTEXT. + + + mail_attachment_detection_options setting controls when + $HasAttachment and $HasNoAttachment keywords are set for mails. + + imap: Support fetching body snippets using FETCH (SNIPPET) or + (SNIPPET (LAZY=FUZZY)) + + fs-compress: Automatically detect whether input is compressed or not. + Prefix the compression algorithm with "maybe-" to enable the + detection, for example: "compress:maybe-gz:6:..." + + Added settings to change dovecot.index* files' optimization behavior. + See https://wiki2.dovecot.org/IndexFiles#Settings + + Auth cache can now utilize auth workers to do password hash + verification by setting auth_cache_verify_password_with_worker=yes. + + Added charset_alias plugin. See + https://wiki2.dovecot.org/Plugins/CharsetAlias + + imap_logout_format and pop3_logout_format settings now support all of + the generic variables (e.g. %{rip}, %{session}, etc.) + + Added auth_policy_check_before_auth, auth_policy_check_after_auth + and auth_policy_report_after_auth settings. + + master: Support HAProxy PP2_TYPE_SSL command and set "secured" + variable appropriately + - Invalid UCS4 escape in HTML can cause crashes + - imap: IMAP COMPRESS -enabled clietn crashes on disconnect + - lmtp: Fix crash when user is over quota + - lib-lda: Parsing Return-Path header address fails when it contains + CFWS + - auth: SASL with Exim fails for AUTH commands without an initial + response + - imap: SPECIAL-USE capability isn't automatically added + - auth: LDAP subqueries do not support standard auth variables in + var-expand + - auth: SHA256-CRYPT and SHA512-CRYPT schemes do not work + - lib-index: mail_always/never_cache_fields are not used for existing + cache files + - imap: Fetching headers leaks memory if search doesn't find any mails + - lmtp: ORCPT support in RCPT TO + - imap-login: Process sometimes ends up in infinite loop + - sdbox: Rolled back save/copy transaction doesn't delete temp files + - mail: lock_method=dotlock causes crashes + +v2.3.0.1 2018-02-28 Timo Sirainen + + * CVE-2017-15130: TLS SNI config lookups may lead to excessive + memory usage, causing imap-login/pop3-login VSZ limit to be reached + and the process restarted. This happens only if Dovecot config has + local_name { } or local { } configuration blocks and attacker uses + randomly generated SNI servernames. + * CVE-2017-14461: Parsing invalid email addresses may cause a crash or + leak memory contents to attacker. For example, these memory contents + might contain parts of an email from another user if the same imap + process is reused for multiple users. First discovered by Aleksandar + Nikolic of Cisco Talos. Independently also discovered by "flxflndy" + via HackerOne. + * CVE-2017-15132: Aborted SASL authentication leaks memory in login + process. + * Linux: Core dumping is no longer enabled by default via + PR_SET_DUMPABLE, because this may allow attackers to bypass + chroot/group restrictions. Found by cPanel Security Team. Nowadays + core dumps can be safely enabled by using "sysctl -w + fs.suid_dumpable=2". If the old behaviour is wanted, it can still be + enabled by setting: + import_environment=$import_environment PR_SET_DUMPABLE=1 + - imap-login with SSL/TLS connections may end up in infinite loop + +v2.3.0 2017-12-22 Timo Sirainen + + * Various setting changes, see https://wiki2.dovecot.org/Upgrading/2.3 + * Logging rewrite started: Logging is now based on hierarchical events. + This makes it possible to do various things, like: 1) giving + consistent log prefixes, 2) enabling debug logging with finer + granularity, 3) provide logs in more machine readable formats + (e.g. json). Everything isn't finished yet, especially a lot of the + old logging code still needs to be translated to the new way. + * Statistics rewrite started: Stats are now based on (log) events. + It's possible to gather statistics about any event that is logged. + See http://wiki2.dovecot.org/Statistics for details + * ssl_dh setting replaces the old generated ssl-parameters.dat + * IMAP: When BINARY FETCH finds a broken mails, send [PARSE] error + instead of [UNKNOWNCTE] + * Linux: core dumping via PR_SET_DUMPABLE is no longer enabled by + default due to potential security reasons (found by cPanel Security + Team). + + + Added support for SMTP submission proxy server, which includes + support for BURL and CHUNKING extension. + + LMTP rewrite. Supports now CHUNKING extension and mixing of + local/proxy recipients. + + auth: Support libsodium to add support for ARGON2I and ARGON2ID + password schemes. + + auth: Support BLF-CRYPT password scheme in all platforms + + auth: Added LUA scripting support for passdb/userdb. + See https://wiki2.dovecot.org/AuthDatabase/Lua + - Input streams are more reliable now when there are errors or when + the maximum buffer size is reached. Previously in some situations + this could have caused Dovecot to try to read already freed memory. + - Output streams weren't previously handling failures when writing a + trailer at the end of the stream. This mainly affected encrypt and + zlib compress ostreams, which could have silently written truncated + files if the last write happened to fail (which shouldn't normally + have ever happened). + - virtual plugin: Fixed panic when fetching mails from virtual + mailboxes with IMAP BINARY extension. + - doveadm-server: Fix potential hangs with SSL connections + - doveadm proxy: Reading commands' output from v2.2.33+ servers could + have caused the output to be corrupted or caused a crash. + - Many other smaller fixes + +v2.2.36.3 2019-03-28 Timo Sirainen + + * CVE-2019-7524: Missing input buffer size validation leads into + arbitrary buffer overflow when reading fts or pop3 uidl header + from Dovecot index. Exploiting this requires direct write access to + the index files. + +v2.2.36.1 2019-02-05 Timo Sirainen + + * CVE-2019-3814: If imap/pop3/managesieve/submission client has + trusted certificate with missing username field + (ssl_cert_username_field), under some configurations Dovecot + mistakenly trusts the username provided via authentication instead + of failing. + * ssl_cert_username_field setting was ignored with external SMTP AUTH, + because none of the MTAs (Postfix, Exim) currently send the + cert_username field. This may have allowed users with trusted + certificate to specify any username in the authentication. This bug + didn't affect Dovecot's Submission service. + + - pop3_no_flag_updates=no: Don't expunge RETRed messages without QUIT + - director: Kicking a user assert-crashes if login process is very slow + - lda/lmtp: Fix assert-crash with some Sieve scripts when + mail_attachment_detection_options=add-flags-on-save + - fs-compress: Using maybe-gz assert-crashed when reading 0 sized file + - Snippet generation crashed with invalid Content-Type:multipart + +v2.2.36 2018-05-23 Timo Sirainen + + * login-proxy: If ssl_require_crl=no, allow revoked certificates. + Also don't do CRL checks for incoming client certificates. + * stats plugin: Don't temporarily enable PR_SET_DUMPABLE while opening + /proc/self/io. This may still cause security problems if the process + is ptrace()d at the same time. Instead, open it while still running + as root. + + + doveadm: Added mailbox cache decision&remove commands. See + doveadm-mailbox(1) man page for details. + + doveadm: Added rebuild attachments command for rebuilding + $HasAttachment or $HasNoAttachment flags for matching mails. See + doveadm-rebuild(1) man page for details. + + cassandra: Use fallback_consistency on more types of errors + - cassandra: Fix consistency=quorum to work + - dsync: Lock file generation failed if home directory didn't exist + - In some configs if namespace root directory didn't yet exist, Dovecot + failed to create mailboxes.lock when trying to create mailboxes + - Snippet generation for HTML mails didn't ignore &entities inside + blockquotes, producing strange looking snippets. + - imapc: Fix assert-crash if getting disconnected and after + reconnection all mails in the selected mailbox are gone. + - pop3c: Handle unexpected server disconnections without assert-crash + - fts: Fixes to indexing mails via virtual mailboxes. + - fts: If mails contained NUL characters, the text around it wasn't + indexed. + - Obsolete dovecot.index.cache offsets were sometimes used. Trying to + fetch a field that was just added to cache file may not have always + found it. + - dict-sql: Fix crash when reading NULL value from database + +v2.2.35 2018-03-19 Aki Tuomi + + - charset_alias: compile fails with Solaris Studio, reported by + John Woods. + - Fix local name handling in v2.2.34 SNI code, bug found by cPanel. + - imapc: Don't try to add mails to index if they already exist there. + - imapc: If email is modified in istream_opened hook, mail size isn't + updated. + - lib-dcrypt: When reading encrypted data, more data would not be + read if buffer was not consumed causing panic or hang. + - notify: When notify plugin is used and transaction commit fails in + dsync, crash occurs. + - sdbox: When delivering to a mailbox that is over quota, temp files + are not cleaned up when saving or copying fails. + +v2.2.34 2018-02-28 Timo Sirainen + + * CVE-2017-15130: TLS SNI config lookups may lead to excessive + memory usage, causing imap-login/pop3-login VSZ limit to be reached + and the process restarted. This happens only if Dovecot config has + local_name { } or local { } configuration blocks and attacker uses + randomly generated SNI servernames. + * CVE-2017-14461: Parsing invalid email addresses may cause a crash or + leak memory contents to attacker. For example, these memory contents + might contain parts of an email from another user if the same imap + process is reused for multiple users. First discovered by Aleksandar + Nikolic of Cisco Talos. Independently also discovered by "flxflndy" + via HackerOne. + * CVE-2017-15132: Aborted SASL authentication leaks memory in login + process. + * Linux: Core dumping is no longer enabled by default via + PR_SET_DUMPABLE, because this may allow attackers to bypass + chroot/group restrictions. Found by cPanel Security Team. Nowadays + core dumps can be safely enabled by using "sysctl -w + fs.suid_dumpable=2". If the old behaviour is wanted, it can still be + enabled by setting: + import_environment=$import_environment PR_SET_DUMPABLE=1 + * doveconf output now includes the hostname. + + + mail_attachment_detection_options setting controls when + $HasAttachment and $HasNoAttachment keywords are set for mails. + + imap: Support fetching body snippets using FETCH (SNIPPET) or + (SNIPPET (LAZY=FUZZY)) + + fs-compress: Automatically detect whether input is compressed or not. + Prefix the compression algorithm with "maybe-" to enable the + detection, for example: "compress:maybe-gz:6:..." + + Added settings to change dovecot.index* files' optimization behavior. + See https://wiki2.dovecot.org/IndexFiles#Settings + + Auth cache can now utilize auth workers to do password hash + verification by setting auth_cache_verify_password_with_worker=yes. + + Added charset_alias plugin. See + https://wiki2.dovecot.org/Plugins/CharsetAlias + + imap_logout_format and pop3_logout_format settings now support all of + the generic variables (e.g. %{rip}, %{session}, etc.) + + Added auth_policy_check_before_auth, auth_policy_check_after_auth + and auth_policy_report_after_auth settings. + - v2.2.33: doveadm-server: Various fixes related to log handling. + - v2.2.33: doveadm failed when trying to access UNIX socket that didn't + require authentication. + - v2.2.33: doveadm log reopen stopped working + - v2.2.30+: IMAP stopped advertising SPECIAL-USE capability + - v2.2.30+: IMAP stopped sending untagged OK/NO storage notifications + - replication: dsync sends unnecessary replication notification for + changes it does internally. NOTE: Folder creates, renames, deletes + and subscribes still trigger unnecessary replication notifications, + but these should be rather rare. + - mail_always/never_cache_fields setting changes weren't applied for + existing dovecot.index.cache files. + - Fix compiling and other problems with OpenSSL v1.1 + - auth policy: With master user logins, lookup using login username. + - FTS reindexed all mails unnecessarily after loss of + dovecot.index.cache file + - mdbox rebuild repeatedly fails with "missing map extension" + - SSL connections may have been hanging with imapc or doveadm client. + - cassandra: Using protocol v3 (Cassandra v2.1) caused memory leaks and + also timestamps weren't set to queries. + - fs-crypt silently ignored public/private keys specified in + configuration (mail_crypt_global_public/private_key) and just + emitted plaintext output. + - lock_method=dotlock caused crashes + - imapc: Reconnection may cause crashes and other errors + +v2.2.33.2 2017-10-20 Timo Sirainen + + - doveadm: Fix crash in proxying (or dsync replication) if remote is + running older than v2.2.33 + - auth: Fix memory leak in %{ldap_dn} + - dict-sql: Fix data types to work correctly with Cassandra + +v2.2.33.1 2017-10-10 Timo Sirainen + + - dovecot-lda was logging to stderr instead of to the log file. + +v2.2.33 2017-10-10 Timo Sirainen + + * doveadm director commands wait for the changes to be visible in the + whole ring before they return. This is especially useful in testing. + * Environments listed in import_environment setting are now set or + preserved when executing standalone commands (e.g. doveadm) + + + doveadm proxy: Support proxying logs. Previously the logs were + visible only in the backend's logs. + + Added %{if}, see https://wiki2.dovecot.org/Variables#Conditionals + + Added a new notify_status plugin, which can be used to update dict + with current status of a mailbox when it changes. See + https://wiki2.dovecot.org/Plugins/NotifyStatus + + Mailbox list index can be disabled for a namespace by appending + ":LISTINDEX=" to location setting. + + dsync/imapc: Added dsync_hashed_headers setting to specify which + headers are used to match emails. + + pop3-migration: Add pop3_migration_ignore_extra_uidls=yes to ignore + mails that are visible in POP3 but not IMAP. This could happen if + new mails were delivered during the migration run. + + pop3-migration: Further improvements to help with Zimbra + + pop3-migration: Cache POP3 UIDLs in imapc's dovecot.index.cache + if indexes are enabled. These are used to optimize incremental syncs. + + cassandra, dict-sql: Use prepared statements if protocol version>3. + + auth: Added %{ldap_dn} variable for passdb/userdb ldap + - acl: The "create" (k) permission in global acl-file was sometimes + ignored, allowing users to create mailboxes when they shouldn't have. + - sdbox: Mails were always opened when expunging, unless + mail_attachment_fs was explicitly set to empty. + - lmtp/doveadm proxy: hostip passdb field was ignored, which caused + unnecessary DNS lookups if host field wasn't an IP + - lmtp proxy: Fix crash when receiving unexpected reply in RCPT TO + - quota_clone: Update also when quota is unlimited (broken in v2.2.31) + - mbox, zlib: Fix assert-crash when accessing compressed mbox + - doveadm director kick -f parameter didn't work + - doveadm director flush resulted flushing all hosts, if + wasn't an IP address. + - director: Various fixes to handling backend/director changes at + abnormal times, especially while ring was unsynced. These could have + resulted in crashes, non-optimal behavior or ignoring some of the + changes. + - director: Use less CPU in imap-login processes when moving/kicking + many users. + - lmtp: Session IDs were duplicated/confusing with multiple RCPT TOs + when lmtp_rcpt_check_quota=yes + - doveadm sync -1 fails when local mailboxes exist that do not exist + remotely. This commonly happened when lazy_expunge mailbox was + autocreated when incremental sync expunged mails. + - pop3: rawlog_dir setting didn't work + + +v2.2.32 2017-08-24 Timo Sirainen + + * imapc: Info-level line is logged every time when successfully + connected to the remote server. This includes local/remote IP/port, + which can be useful for matching against external logs. + * config: Log a warning if plugin { key=no } is used explicitly. + v2.3 will support "no" properly in plugin settings, but for now + any value at all for a boolean plugin setting is treated as "yes", + even if it's written as explicit "no". This change will now warn + that it most likely won't work as intended. + + + Various optimizations to avoid accessing files/directories when it's + not necessary. Especially avoid accessing mail root directories when + INDEX directories point to a different filesystem. + + mail_location can now include ITERINDEX parameter. This tells Dovecot + to perform mailbox listing from the INDEX path instead of from the + mail root path. It's mainly useful when the INDEX storage is on a + faster storage. + + mail_location can now include VOLATILEDIR= parameter. This + is used for creating lock files and in future potentially other + files that don't need to exist permanently. The path could point to + tmpfs for example. This is especially useful to avoid creating lock + files to NFS or other remote filesystems. For example: + mail_location=sdbox:~/sdbox:VOLATILEDIR=/tmp/volatile/%2.256Nu/%u + + mail_location's LISTINDEX= can now contain a full path. + This allows storing mailbox list index to a different storage + than the rest of the indexes, for example to tmpfs. + + mail_location can now include NO-NOSELECT parameter. This + automatically deletes any \NoSelect mailboxes that have no children. + These mailboxes are sometimes confusing to users. + + mail_location can now include BROKENCHAR= parameter. This can + be useful with imapc to access mailbox names that aren't valid mUTF-7 + charset from remote servers. + + If mailbox_list_index_very_dirty_syncs=yes, the list index is no + longer refreshed against filesystem when listing mailboxes. This + allows the mailbox listing to be done entirely by only reading the + mailbox list index. + + Added mailbox_list_index_include_inbox setting to control whether + INBOX's STATUS information should be cached in the mailbox list + index. The default is "no", but it may be useful to change it to + "yes", especially if LISTINDEX points to tmpfs. + + userdb can return chdir=, which override mail_home for the + chdir location. This can be useful to avoid accessing home directory + on login. + + userdb can return postlogin= to specify per-user imap/pop3 + postlogin socket path. + + cassandra: Add support for result paging by adding page_size= + parameter to the connect setting. + + dsync/imapc, pop3-migration plugin: Strip also trailing tabs from + headers when matching mails. This helps with migrations from Zimbra. + + imap_logout_format supports now %{appended} and %{autoexpunged} + + virtual plugin: Optimize IDLE to use mailbox list index for finding + out when something has changed. + + Added apparmor plugin. See https://wiki2.dovecot.org/Plugins/Apparmor + - virtual plugin: A lot of fixes. In many cases it was also working + very inefficiently or even incorrectly. + - imap: NOTIFY parameter parsing was incorrectly "fixed" in v2.2.31. + It was actually (mostly) working in previous versions, but broken + in v2.2.31. + - Modseq tracking didn't always work correctly. This could have caused + imap unhibernation to fail or IMAP QRESYNC/CONDSTORE extensions to + not work perfectly. + - mdbox: "Inconsistency in map index" wasn't fixed automatically + - dict-ldap: %variable values used in the LDAP filter weren't escaped. + - quota=count: quota_warning = -storage=.. was never executed (try #2). + v2.2.31 fixed it for -messages, but not for -storage. + - imapc: >= 32 kB mail bodies were supposed to be cached for subsequent + FETCHes, but weren't. + - quota-status service didn't support recipient_delimiter + - acl: Don't access dovecot-acl-list files with acl_globals_only=yes + - mail_location: If INDEX dir is set, mailbox deletion deletes its + childrens' indexes. For example if "box" is deleted, "box/child" + index directory was deleted as well (but mails were preserved). + - director: v2.2.31 caused rapid reconnection loops to directors + that were down. + +v2.2.31 2017-06-26 Timo Sirainen + + * LMTP: Removed "(Dovecot)" from added Received headers. Some + installations want to hide it, and there's not really any good reason + for anyone to have it. + + + Add ssl_alt_cert and ssl_alt_key settings to add support for + having both RSA and ECDSA certificates. + + dsync/imapc, pop3-migration plugin: Strip trailing whitespace from + headers when matching mails. This helps with migrations from Zimbra. + + acl: Add acl_globals_only setting to disable looking up + per-mailbox dovecot-acl files. + + Parse invalid message addresses better. This mainly affects the + generated IMAP ENVELOPE replies. + - v2.2.30 wasn't fixing corrupted dovecot.index.cache files properly. + It could have deleted wrong mail's cache or assert-crashed. + - v2.2.30 mail-crypt-acl plugin was assert-crashing + - v2.2.30 welcome plugin wasn't working + - Various fixes to handling mailbox listing. Especially related to + handling nonexistent autocreated/autosubscribed mailboxes and ACLs. + - Global ACL file was parsed as if it was local ACL file. This caused + some of the ACL rule interactions to not work exactly as intended. + - auth: forward_* fields didn't work properly: Only the first forward + field was working, and only if the first passdb lookup succeeded. + - Using mail_sort_max_read_count sometimes caused "Broken sort-* + indexes, resetting" errors. + - Using mail_sort_max_read_count may have caused very high CPU usage. + - Message address parsing could have crashed on invalid input. + - imapc_features=fetch-headers wasn't always working correctly and + caused the full header to be fetched. + - imapc: Various bugfixes related to connection failure handling. + - quota=imapc sent unnecessary FETCH RFC822.SIZE to server when + expunging mails. + - quota=count: quota_warning = -storage=.. was never executed + - quota=count: Add support for "ns" parameter + - dsync: Fix incremental syncing for mails that don't have Date or + Message-ID headers. + - imap: Fix hang when client sends pipelined SEARCH + + EXPUNGE/CLOSE/LOGOUT. + - oauth2: Token validation didn't accept empty server responses. + - imap: NOTIFY command has been almost completely broken since the + beginning. I guess nobody has been trying to use it. + + +v2.2.30.2 2017-06-06 Timo Sirainen + + - auth: Multiple failed authentications within short time caused + crashes + - push-notification: OX driver crashed at deinit + +v2.2.30.1 2017-05-31 Timo Sirainen + + - quota_warning scripts weren't working in v2.2.30 + - vpopmail still wasn't compiling + +v2.2.30 2017-05-30 Timo Sirainen + + * auth: Use timing safe comparisons for everything related to + passwords. It's unlikely that these could have been used for + practical attacks, especially because Dovecot delays and flushes all + failed authentications in 2 second intervals. Also it could have + worked only when passwords were stored in plaintext in the passdb. + * master process sends SIGQUIT to all running children at shutdown, + which instructs them to close all the socket listeners immediately. + This way restarting Dovecot should no longer fail due to some + processes keeping the listeners open for a long time. + + + auth: Add passdb { mechanisms=none } to match separate passdb lookup + + auth: Add passdb { username_filter } to use passdb only if user + matches the filter. See https://wiki2.dovecot.org/PasswordDatabase + + dsync: Add dsync_commit_msgs_interval setting. It attempts to commit + the transaction after saving this many new messages. Because of the + way dsync works, it may not always be possible if mails are copied + or UIDs need to change. + + imapc: Support imapc_features=search without ESEARCH extension. + + imapc: Add imapc_features=fetch-bodystructure to pass through remote + server's FETCH BODY and BODYSTRUCTURE. + + imapc: Add quota=imapc backend to use GETQUOTA/GETQUOTAROOT on the + remote server. + + passdb imap: Add allow_invalid_cert and ssl_ca_file parameters. + + If dovecot.index.cache corruption is detected, reset only the one + corrupted mail instead of the whole file. + + doveadm mailbox status: Add "firstsaved" field. + + director_flush_socket: Add old host's up/down and vhost count as parameters + - More fixes to automatically fix corruption in dovecot.list.index + - dsync-server: Fix support for dsync_features=empty-header-workaround + - imapc: Various bugfixes, including infinite loops on some errors + - IMAP NOTIFY wasn't working for non-INBOX if IMAP client hadn't + enabled modseq tracking via CONDSTORE/QRESYNC. + - fts-lucene: Fix it to work again with mbox format + - Some internal error messages may have contained garbage in v2.2.29 + - mail-crypt: Re-encrypt when copying/moving mails and per-mailbox keys + are used. Otherwise the copied mails can't be opened. + - vpopmail: Fix compiling + +v2.2.29.1 2017-04-12 Timo Sirainen + + - imapc reconnection fix was forgotten from 2.2.29 release, which also + made "make check" fail in a unit test + - dict-sql: Merging multiple UPDATEs to a single statement wasn't + actually working. + - Fixed building with vpopmail + +v2.2.29 2017-04-10 Timo Sirainen + + * passdb/userdb dict: Don't double-expand %variables in keys. If dict + was used as the authentication passdb, using specially crafted + %variables in the username could be used to cause DoS (CVE-2017-2669) + * When Dovecot encounters an internal error, it logs the real error and + usually logs another line saying what function failed. Previously the + second log line's error message was a rather uninformative "Internal + error occurred. Refer to server log for more information." Now the + real error message is duplicated in this second log line. + * lmtp: If a delivery has multiple recipients, run autoexpunging only + for the last recipient. This avoids a problem where a long + autoexpunge run causes LMTP client to timeout between the DATA + replies, resulting in duplicate mail deliveries. + * config: Don't stop the process due to idling. Otherwise the + configuration is reloaded when the process restarts. + * mail_log plugin: Differentiate autoexpunges from regular expunges + * imapc: Use LOGOUT to cleanly disconnect from server. + * lib-http: Internal status codes (>9000) are no longer visible in logs + * director: Log vhost count changes and HOST-UP/DOWN + + + quota: Add plugin { quota_max_mail_size } setting to limit the + maximum individual mail size that can be saved. + + imapc: Add imapc_features=delay-login. If set, connecting to the + remote IMAP server isn't done until it's necessary. + + imapc: Add imapc_connection_retry_count and + imapc_connection_retry_interval settings. + + imap, pop3, indexer-worker: Add (deinit) to process title before + autoexpunging runs. + + Added %{encrypt} and %{decrypt} variables + + imap/pop3 proxy: Log proxy state in errors as human-readable string. + + imap/pop3-login: All forward_* extra fields returned by passdb are + sent to the next hop when proxying using ID/XCLIENT commands. On the + receiving side these fields are imported and sent to auth process + where they're accessible via %{passdb:forward_*}. This is done only + if the sending IP address matches login_trusted_networks. + + imap-login: If imap_id_retain=yes, send the IMAP ID string to + auth process. %{client_id} expands to it in auth process. The ID + string is also sent to the next hop when proxying. + + passdb imap: Use ssl_client_ca_* settings for CA validation. + - fts-tika: Fixed crash when parsing attachment without + Content-Disposition header. Broken by 2.2.28. + - trash plugin was broken in 2.2.28 + - auth: When passdb/userdb lookups were done via auth-workers, too much + data was added to auth cache. This could have resulted in wrong + replies when using multiple passdbs/userdbs. + - auth: passdb { skip & mechanisms } were ignored for the first passdb + - oauth2: Various fixes, including fixes to crashes + - dsync: Large Sieve scripts (or other large metadata) weren't always + synced. + - Index rebuild (e.g. doveadm force-resync) set all mails as \Recent + - imap-hibernate: %{userdb:*} wasn't expanded in mail_log_prefix + - doveadm: Exit codes weren't preserved when proxying commands via + doveadm-server. Almost all errors used exit code 75 (tempfail). + - ACLs weren't applied to not-yet-existing autocreated mailboxes. + - Fixed a potential crash when parsing a broken message header. + - cassandra: Fallback consistency settings weren't working correctly. + - doveadm director status : "Initial config" was always empty + - imapc: Various reconnection fixes. + +v2.2.28 2017-02-24 Timo Sirainen + + * director: "doveadm director move" to same host now refreshes user's + timeout. This allows keeping user constantly in the same backend by + just periodically moving the user there. + * When new mailbox is created, use initially INBOX's + dovecot.index.cache caching decisions. + * Expunging mails writes GUID to dovecot.index.log now only if the + GUID is quickly available from index/cache. + * pop3c: Increase timeout for PASS command to 5 minutes. + * Mail access errors are no longer ignored when searching or sorting. + With IMAP the untagged SEARCH/SORT reply is still sent the same as + before, but NO reply is returned instead of OK. + + + Make dovecot.list.index's filename configurable. This is needed when + there are multiple namespaces pointing to the same mail root + (e.g. lazy_expunge namespace for mdbox). + + Add size.virtual to dovecot.index when folder vsizes are accessed + (e.g. quota=count). This is mainly a workaround to avoid slow quota + recalculation performance when message sizes get lost from + dovecot.index.cache due to corruption or some other reason. + + auth: Support OAUTHBEARER and XOAUTH2 mechanisms. Also support them + in lib-dsasl for client side. + + auth: Support filtering by SASL mechanism: passdb { mechanisms } + + Shrink the mail processes' memory usage by not storing settings + duplicated unnecessarily many times. + + imap: Add imap_fetch_failure setting to control what happens when + FETCH fails for some mails (see example-config). + + imap: Include info about last command in disconnection log line. + + imap: Created new SEARCH=X-MIMEPART extension. It's currently not + advertised by default, since it's not fully implemented. + + fts-solr: Add support for basic authentication. + + Cassandra: Support automatically retrying failed queries if + execution_retry_interval and execution_retry_times are set. + + doveadm: Added "mailbox path" command. + + mail_log plugin: If plugin { mail_log_cached_only=yes }, log the + wanted fields only if it doesn't require opening the email. + + mail_vsize_bg_after_count setting added (see example-config). + + mail_sort_max_read_count setting added (see example-config). + + pop3c: Added pop3c_features=no-pipelining setting to prevent using + PIPELINING extension even though it's advertised. + + - Index files: day_first_uid wasn't updated correctly since v2.2.26. + This caused dovecot.index.cache to be non-optimal. + - imap: SEARCH/SORT may have assert-crashed in + client_check_command_hangs + - imap: FETCH X-MAILBOX may have assert-crashed in virtual mailboxes. + - imap: Running time in tagged command reply was often wrongly 0. + - search: Using NOT n:* or NOT UID n:* wasn't handled correctly + - director: doveadm director kick was broken + - director: Fix crash when using director_flush_socket + - director: Fix some bugs when moving users between backends + - imapc: Various error handling fixes and improvements + - master: doveadm process status output had a lot of duplicates. + - autoexpunge: If mailbox's rename timestamp is newer than mail's + save-timestamp, use it instead. This is useful when autoexpunging + e.g. Trash/* and an entire mailbox is deleted by renaming it under + Trash to prevent it from being autoexpunged too early. + - autoexpunge: Multiple processes may have been trying to expunge the + same mails simultaneously. This was problematic especially with + lazy_expunge plugin. + - auth: %{passdb:*} was empty in auth-worker processes + - auth-policy: hashed_password was always sent empty. + - dict-sql: Merge multiple UPDATEs to a single statement if possible. + - fts-solr: Escape {} chars when sending queries + - fts: fts_autoindex_exclude = \Special-use caused crashes + - doveadm-server: Fix leaks and other problems when process is reused + for multiple requests (service_count != 1) + - sdbox: Fix assert-crash on mailbox create race + - lda/lmtp: deliver_log_format values weren't entirely correct if Sieve + was used. especially %{storage_id} was broken. + - lmtp_user_concurrency_limit didn't work if userdb changed username + +v2.2.27 2016-12-03 Timo Sirainen + + * dovecot.list.index.log rotation sizes/times were changed so that + the .log file stays smaller and .log.2 is deleted sooner. + + + Added mail_crypt plugin that allows encryption of stored emails. + See http://wiki2.dovecot.org/Plugins/MailCrypt + + stats: Global stats can be sent to Carbon server by setting + stats_carbon_server=ip:port + + imap/pop3 proxy: If passdb returns proxy_not_trusted, don't send + ID/XCLIENT + + Added generic hash modifier for %variables: + %{;rounds=,truncate=,salt=s>:field} + Hash algorithm is any of the supported ones, e.g. md5, sha1, sha256. + Also "pkcs5" is supported using SHA256. For example: %{sha256:user} + or %{md5;truncate=32:user}. + + Added support for SHA3-256 and SHA3-512 hashes. + + config: Support DNS wildcards in local_name, e.g. + local_name *.example.com { .. } matches anything.example.com, but + not multiple.anything.example.com. + + config: Support multiple names in local_name, e.g. + local_name "1.example.com 2.example.com" { .. } + - Fixed crash in auth process when auth-policy was configured and + authentication was aborted/failed without a username set. + - director: If two users had different tags but the same hash, + the users may have been redirected to the wrong tag's hosts. + - Index files may have been thought incorrectly lost, causing + "Missing middle file seq=.." to be logged and index rebuild. + This happened more easily with IMAP hibernation enabled. + - Various fixes to restoring state correctly in un-hibernation. + - dovecot.index files were commonly 4 bytes per email too large. This + is because 3 bytes per email were being wasted that could have been + used for IMAP keywords. + - Various fixes to handle dovecot.list.index corruption better. + - lib-fts: Fixed assert-crash in address tokenizer with specific input. + - Fixed assert-crash in HTML to text parsing with specific input + (e.g. for FTS indexing or snippet generation) + - doveadm sync -1: Fixed handling mailbox GUID conflicts. + - sdbox, mdbox: Perform full index rebuild if corruption is detected + inside lib-index, which runs index fsck. + - quota: Don't skip quota checks when moving mails between different + quota roots. + - search: Multiple sequence sets or UID sets in search parameters + weren't handled correctly. They were incorrectly merged together. + +v2.2.26.0 2016-10-28 Timo Sirainen + + - Fixed some compiling issues. + - auth: Fixed assert-crash when using NTLM or SKEY mechanisms and + multiple passdbs. + - auth: Fixed crash when exporting to auth-worker passdb extra fields + that had empty values. + - dsync: Fixed assert-crash in dsync_brain_sync_mailbox_deinit + +v2.2.26 2016-10-27 Timo Sirainen + + * master: Removed hardcoded 511 backlog limit for listen(). The kernel + should limit this as needed. + * doveadm import: Source user is now initialized the same as target + user. Added -U parameter to override the source user. + * Mailbox names are no longer limited to 16 hierarchy levels. We'll + check another way to make sure mailbox names can't grow larger than + 4096 bytes. + + + Added a concept of "alternative usernames" by returning user_* extra + field(s) in passdb. doveadm proxy list shows these alt usernames in + "doveadm proxy list" output. "doveadm director&proxy kick" adds + -f parameter. The alt usernames don't have to be + unique, so this allows creation of user groups and kicking them in + one command. + + auth: passdb/userdb dict allows now %variables in key settings. + + auth: If passdb returns noauthenticate=yes extra field, assume that + it only set extra fields and authentication wasn't actually performed. + + auth: passdb static now supports password={scheme} prefix. + + auth, login_log_format_elements: Added %{local_name} variable, which + expands to TLS SNI hostname if given. + + imapc: Added imapc_max_line_length to limit maximum memory usage. + + imap, pop3: Added rawlog_dir setting to store IMAP/POP3 traffic logs. + This replaces at least partially the rawlog plugin. + + dsync: Added dsync_features=empty-header-workaround setting. This + makes incremental dsyncs work better for servers that randomly return + empty headers for mails. When an empty header is seen for an existing + mail, dsync assumes that it matches the local mail. + + doveadm sync/backup: Added -I parameter to skip too + large mails. + + doveadm sync/backup: Fixed -t parameter and added -e for "end date". + + doveadm mailbox metadata: Added -s parameter to allow accessing + server metadata by using empty mailbox name. + + Added "doveadm service status" and "doveadm process status" commands. + + director: Added director_flush_socket. See + http://wiki2.dovecot.org/Director#Flush_socket + + doveadm director flush: Users are now moved only max 100 at a time to + avoid load spikes. --max-parallel parameter overrides this. + + Added FILE_LOCK_SLOW_WARNING_MSECS environment, which logs a warning + if any lock is waited on or kept for this many milliseconds. + + - master process's listener socket was leaked to all child processes. + This might have allowed untrusted processes to capture and prevent + "doveadm service stop" comands from working. + - login proxy: Fixed crash when outgoing SSL connections were hanging. + - auth: userdb fields weren't passed to auth-workers, so %{userdb:*} + from previous userdbs didn't work there. + - auth: Each userdb lookup from cache reset its TTL. + - auth: Fixed auth_bind=yes + sasl_bind=yes to work together + - auth: Blocking userdb lookups reset extra fields set by previous + userdbs. + - auth: Cache keys didn't include %{passdb:*} and %{userdb:*} + - auth-policy: Fixed crash due to using already-freed memory if policy + lookup takes longer than auth request exists. + - lib-auth: Unescape passdb/userdb extra fields. Mainly affected + returning extra fields with LFs or TABs. + - lmtp_user_concurrency_limit>0 setting was logging unnecessary + anvil errors. + - lmtp_user_concurrency_limit is now checked before quota check with + lmtp_rcpt_check_quota=yes to avoid unnecessary quota work. + - lmtp: %{userdb:*} variables didn't work in mail_log_prefix + - autoexpunge settings for mailboxes with wildcards didn't work when + namespace prefix was non-empty. + - Fixed writing >2GB to iostream-temp files (used by fs-compress, + fs-metawrap, doveadm-http) + - director: Ignore duplicates in director_servers setting. + - director: Many fixes related to connection handshaking, user moving + and error handling. + - director: Don't break with shutdown_clients=no + - zlib, IMAP BINARY: Fixed internal caching when accessing multiple + newly created mails. They all had UID=0 and the next mail could have + wrongly used the previously cached mail. + - doveadm stats reset wasn't reseting all the stats. + - auth_stats=yes: Don't update num_logins, since it doubles them when + using with mail stats. + - quota count: Fixed deadlocks when updating vsize header. + - dict-quota: Fixed crashes happening due to memory corruption. + - dict proxy: Fixed various timeout-related bugs. + - doveadm proxying: Fixed -A and -u wildcard handling. + - doveadm proxying: Fixed hangs and bugs related to printing. + - imap: Fixed wrongly triggering assert-crash in + client_check_command_hangs. + - imap proxy: Don't send ID command pipelined with nopipelining=yes + - imap-hibernate: Don't execute quota_over_script or last_login after + un-hibernation. + - imap-hibernate: Don't un-hibernate if client sends DONE+IDLE in one + IP packet. + - imap-hibernate: Fixed various failures when un-hibernating. + - fts: fts_autoindex=yes was broken in 2.2.25 unless + fts_autoindex_exclude settings existed. + - fts-solr: Fixed searching multiple mailboxes (patch by x16a0) + - doveadm fetch body.snippet wasn't working in 2.2.25. Also fixed a + crash with certain emails. + - pop3-migration + dbox: Various fixes related to POP3 UIDL + optimization in 2.2.25. + - pop3-migration: Fixed "truncated email header" workaround. + +v2.2.25 2016-07-01 Timo Sirainen + + * lmtp: Start tracking lmtp_user_concurrency_limit and reject already + at RCPT TO stage. This avoids MTA unnecessarily completing DATA only + to get an error. + * doveadm: Previously only mail settings were read from protocol + doveadm { .. } section. Now all settings are. + + + quota: Added quota_over_flag_lazy_check setting. It avoids checking + quota_over_flag always at startup. Instead it's checked only when + quota is being read for some other purpose. + + auth: Added a new auth policy service: + http://wiki2.dovecot.org/Authentication/Policy + + auth: Added PBKDF2 password scheme + + auth: Added %{auth_user}, %{auth_username} and %{auth_domain} + + auth: Added ":remove" suffix to extra field names to remove them. + + auth: Added "delay_until=[+]" passdb + extra field. The auth will wait until and optionally some + randomness and then return success. + + dict proxy: Added idle_msecs= parameter. Support async operations. + + Performance improvements for handling large mailboxes. + + Added lib-dcrypt API for providing cryptographic functions. + + Added "doveadm mailbox update" command + + imap commands' output now includes timing spent on the "syncing" + stage if it's larger than 0. + + cassandra: Added metrics= to connect setting to output internal + statistics in JSON format every second to . + + doveadm mailbox delete: Added -e parameter to delete only empty + mailboxes. Added --unsafe option to quickly delete a mailbox, + bypassing lazy_expunge and quota plugins. + + doveadm user & auth cache flush are now available via doveadm-server. + + doveadm service stop will stop specified services while + leaving the rest of Dovecot running. + + quota optimization: Avoid reading mail sizes for backends which + don't need them (count, fs, dirsize) + + Added mailbox { autoexpunge_max_mails= } setting. + + Added welcome plugin: http://wiki2.dovecot.org/Plugins/Welcome + + fts: Added fts_autoindex_exclude setting. + - v2.2.24's MIME parser was assert-crashing on mails having truncated + MIME headers. + - auth: With multiple userdbs the final success/failure result wasn't + always correct. The last userdb's result was always used. + - doveadm backup was sometimes deleting entire mailboxes unnecessarily. + - doveadm: Command -parameters weren't being sent to doveadm-server. + - If dovecot.index read failed e.g. because mmap() reached VSZ limit, + an empty index could have been opened instead, corrupting the + mailbox state. + - imapc: Fixed EXPUNGE handling when imapc_features didn't have modseq. + - lazy-expunge: Fixed a crash when copying failed. Various other fixes. + - fts-lucene: Fixed crash on index rescan. + - auth_stats=yes produced broken output + - dict-ldap: Various fixes + - dict-sql: NULL values crashed. Now they're treated as "not found". + +v2.2.24 2016-04-26 Timo Sirainen + + * doveconf now warns if it sees a global setting being changed when + the same setting was already set inside some filters. (A common + mistake has been adding more plugins to a global mail_plugins + setting after it was already set inside protocol { .. }, which + caused the global setting to be ignored for that protocol.) + * LMTP proxy: Increased default timeout 30s -> 125s. This makes it + less likely to reach the timeout and cause duplicate deliveries. + * LMTP and indexer now append ":suffix" to session IDs to make it + unique for the specific user's delivery. (Fixes duplicate session + ID warnings in stats process.) + + + Added dict-ldap for performing read-only LDAP dict lookups. + + lazy-expunge: All mails can be saved to a single specified mailbox. + + mailbox { autoexpunge } supports now wildcards in mailbox names. + + doveadm HTTP API: Added support for proxy commands + + imapc: Reconnect when getting disconnected in non-selected state. + + imapc: Added imapc_features=modseq to access MODSEQs/HIGHESTMODSEQ. + This is especially useful for incremental dsync. + + doveadm auth/user: Auth lookup performs debug logging if + -o auth_debug=yes is given to doveadm. + + Added passdb/userdb { auth_verbose=yes|no } setting. + + Cassandra: Added user, password, num_threads, connect_timeout and + request_timeout settings. + + doveadm user -e : Print with %variables expanded. + - Huge header lines could have caused Dovecot to use too much memory + (depending on config and used IMAP commands). (Typically this would + result in only the single user's process dying with out of memory + due to reaching service { vsz_limit } - not a global DoS). + - dsync: Detect and handle invalid/stale -s state string better. + - dsync: Fixed crash caused by specific mailbox renames + - auth: Auth cache is now disabled passwd-file. It was unnecessary and + it broke %variables in extra fields. + - fts-tika: Don't crash if it returns 500 error + - dict-redis: Fixed timeout handling + - SEARCH INTHREAD was crashing + - stats: Only a single fifo_listeners was supported, making it + impossible to use both auth_stats=yes and mail stats plugin. + - SSL errors were logged in separate "Stacked error" log lines + instead of as part of the disconnection reason. + - MIME body parser didn't handle properly when a child MIME part's + --boundary had the same prefix as the parent. + +v2.2.23 2016-03-30 Timo Sirainen + + - Various fixes to doveadm. Especially running commands via + doveadm-server was broken. + - director: Fixed user weakness getting stuck in some situations + - director: Fixed a situation where directors keep re-sending + different states to each others and never becoming synced. + - director: Fixed assert-crash related to a slow "user killed" reply + - Fixed assert-crash related to istream-concat, which could have + been triggered at least by a Sieve script. + +v2.2.22 2016-03-16 Timo Sirainen + + + Added doveadm HTTP API: See + http://wiki2.dovecot.org/Design/DoveadmProtocol/HTTP + + virtual plugin: Mailbox filtering can now be done based on the + mailbox metadata. See http://wiki2.dovecot.org/Plugins/Virtual + + stats: Added doveadm stats reset to reset global stats. + + stats: Added authentication statistics if auth_stats=yes. + + dsync, imapc, pop3c & pop3-migration: Many optimizations, + improvements and error handling fixes. + + doveadm: Most commands now stop soon after SIGINT/SIGTERM. + - auth: Auth caching was done too aggressively when %variables were + used in default_fields, override_fields or LDAP pass/user_attrs. + userdb result_* were also ignored when user was found from cache. + - imap: Fixed various assert-crashes caused v2.2.20+. Some of them + caught actual hangs or otherwise unwanted behavior towards IMAP + clients. + - Expunges were forgotten in some situations, for example when + pipelining multiple IMAP MOVE commands. + - quota: Per-namespaces quota were broken for dict and count backends + in v2.2.20+ + - fts-solr: Search queries were using OR instead of AND as the + separator for multi-token search queries in v2.2.20+. + - Single instance storage support wasn't really working in v2.2.16+ + - dbox: POP3 message ordering wasn't working correctly. + - virtual plugin: Fixed crashes related to backend mailbox deletions. + +v2.2.21 2015-12-11 Timo Sirainen + + - doveadm mailbox list (and some others) were broken in v2.2.20 + - director: Fixed making backend changes when running with only a + single director server. + - virtual plugin: Fixed crash when trying to open nonexistent + autocreated backend mailbox. + +v2.2.20 2015-12-07 Timo Sirainen + + + Added mailbox { autoexpunge=